Why does is_prime fail for some numbers?

2 posts were split to a new topic: Your function fails on is_prime(4)