Prime number checker.