the original way will not accurately determine if a number is prime, it will only determine if a number is odd, not all odd numbers are prime ( 9 and 15 for example). The method I posted will absolutely determine if its prime or not. Although the method I gave you is probably the slowest 'fast' method there is, its also the simplest. There are far faster methods otu there, but the maths gets thick.