Tuesday, July 20, 2010

World's most inefficient way to check for primeness (via Reddit)


Fire your perl interpreter, feed this function 982451653, and watch your computer die a slow and painful death...


Anonymous said...

WOW! This is super cool Regex :-)

Anonymous said...

Well, strictly speaking, that's not a regular expression a la formal language theory.

Now THAT would've been real neat!