r/computerscience • u/Zizosk • Mar 20 '25
New prime algorithm I just made
Hi, I just published a research paper about a new prime generation algorithm that's alot more memory efficient than the sieve of Eratosthenes, and is faster at bigger numbers from some tests I made. Here's the link to the paper : https://doi.org/10.5281/zenodo.15055003 there's also a github link with the open-source python code, what do you think?
104
Upvotes
View all comments
Show parent comment
2
u/Zizosk Mar 20 '25
oh yeah thanks I missed that typo, what I meant by O(N) space is inefficient is that sieves like Atkin or Eratosthenes have O(N) space just like the Wheel-heap algorithm I proposed but they either have poor memory scaling or are complex to implement, so in other words I meant that while my algorithm also has O(N) space it is easier to implement and uses less memory