The fine line between clever and stupid

Via kottke.org, massively abusing regular expressions and successive divisions by potential factors to determine whether a number is prime in one line of Perl code.

This entry was posted in Computing and Mathematics. Bookmark the permalink.

Comments are closed.