http://www.perlmonks.org?node_id=610313


in reply to Re: ulam's spiral too slow
in thread ulam's spiral too slow

Your is_prime function claims that 4 is a prime number. Would you please please please check on even-ness of a number, before you even start going through the whole checking loop?