News for hackers. Stuff that matters.
Re:A regular expression to check for prime numbers by myfonj on Thursday February 12, 2015 @06:23PM (#9042027)
Why not just function isPrime(n) { return !/^1?$|^(11+?)\1+$/.test(Array(n+1).join('1')) } then? :]

There are no comments on this comment yet.