Decreased run time of Number5 for Java