One of the most simple java primality checkers (no imports other than scanner).