News for hackers. Stuff that matters.
Re:A regular expression to check for prime numbers by gojomo on Sunday July 04, 2010 @08:05PM (#1486685)
This regex has been mentioned on HN a few times before.

If your browser has Java applet support, here you can watch the regex succeed (demonstrating a number is composite) or fail (prime):

49: http://regex.powertoy.org/?pat=/^1%3F%24|^%2811+%3F%29\1+%24...

47: http://regex.powertoy.org/?pat=/^1%3F%24|^%2811+%3F%29\1+%24...

There are no comments on this comment yet.