236 links
  • Zertrin's links
  • Home
  • Login
  • RSS Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
page 1 / 1
1 results tagged prime x
  • The Prime That Wasn’t » Andrei Zmievski
    /^1?$|^(11+?)\1+$/

    Don't take this regular expression too seriously, it's actually neither a regular expression (as defined in automata theory), nor a way to check if a number is a prime. It's just an awesome thing that Perl can do. See this cool article called The Prime That Wasn't by Andrei Zmievski for a discussion about how this regex fails for larger numbers because of backtracking.
    Mon Jan 21 15:46:12 2013 - permalink -
    - http://zmievski.org/2010/08/the-prime-that-wasnt
    prime regexp
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, no-database delicious clone by the Shaarli community - Help/documentation