prime number detector detects if a number is non-prime