Prime number check.