Using a ‘regular’ expression to test primality is a bad idea

A classic trick of backward references but painfully slow. And some comments on benchmarking JavaScript code.

文章来源:

Author:Gee Law’s Blog
link:https://geelaw.blog/entries/regex-prime-js-benchmark/?utm_source=feed&utm_medium=rss