in reply to Re^2: Prime list
in thread Prime list

Maybe a nice educational example to explain, how \1 backreference and backtracking in regex work... not so much for primes though.

Homework wise I mean! ;-)

Cheers Rolf

PS: Je suis Charlie!

Replies are listed 'Best First'.
Re^4: Prime list
by AnomalousMonk (Archbishop) on Feb 08, 2015 at 23:05 UTC

    But it's such a deliciously scandalous (ab)use of the RE that I had to throw it in! And in any event, a student's reach should exceed his or her grasp...


    Give a man a fish:  <%-(-(-(-<