3 ms·
You can watch that prime-testing regex in action. Here it is matching 49, showing it is not-prime: http://regex.powertoy.org/?pat=/%5E1%3F%24%7C%5E%2811+%3F%29
by gojomo 18y ago
You can watch that prime-testing regex in action. Here it is matching 49, showing it is not-prime:
http://regex.powertoy.org/?pat=/%5E1%3F%24%7C%5E%2811+%3F%29%5C1+%24/&syn=perlSyntax&anim=1&rep=&in=1111111111111111111111111111111111111111111111111 http://regex.powertoy.org/?pat=/%5E1%3F%24%7C%5E%2811+%3F%29...
And here failing against 47, showing it is prime:
http://regex.powertoy.org/?pat=/%5E1%3F%24%7C%5E%2811+%3F%29%5C1+%24/&syn=perlSyntax&anim=1&rep=&in=11111111111111111111111111111111111111111111111 http://regex.powertoy.org/?pat=/%5E1%3F%24%7C%5E%2811+%3F%29...