4 ms·
If the number of 1's itself is prime, then n is prime. That's all this does. Search the other comments for 'hung' or 'hang' to see examples of small numbers th
by russfink 5y ago
If the number of 1's itself is prime, then n is prime. That's all this does. Search the other comments for 'hung' or 'hang' to see examples of small numbers that take forever to resolve.
- bawolff 5y agoSure. its basically a less efficient form of trial division.