is_prime(1) should be false
Alternative solution of Deniz Tohumcu added.