Simple IOS8 to test if a number is prime