Xcode project checking whether entered number is prime.