Java Determine If Number Is Prime