r/computerscience • • 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?

100 Upvotes

89 comments sorted by

View all comments

Show parent comment

9

u/Zizosk Mar 20 '25

oh and by the way, I tested it up to 10⁸, it had 100% accuracy, when I tried testing it to 10⁹ it worked fine but I couldn't make sure it was accurate by comparing it to the sieve of Eratosthenes because SE used too much memory, so the tests that I did were very promising.

65

u/Magdaki Professor. Grammars. Inference & Optimization algorithms. Mar 20 '25 edited Mar 20 '25

You still need a proof. You cannot just say it worked up to 10^8.

Assuming you intend this to be serious research. You're 15, and if you were doing this for fun and to learn, then its great and you can ignore everything I've said.

17

u/Zizosk Mar 20 '25

I'm mainly doing this out of curiosity and interest in math/CS but I also hope that It could help with college applications.

72

u/Magdaki Professor. Grammars. Inference & Optimization algorithms. Mar 20 '25

I would say it would be helpful for college applications. So in that sense, congrats!

I would avoid using the term "published" on applications though. That has a specific meaning in academia. The paper would have to pass peer-review to be considered published.

Good luck!

3

u/DorphinPack Mar 24 '25

I think you can totally take this, learn from it and make yourself a stronger candidate. Just getting something working isn’t enough — research is a form of communication. You’ve got a strong foundation and know what you need to work on next 🤘

15

u/[deleted] Mar 20 '25

Also I reviewed some literature online. It does appear pretty similar to this

https://stackoverflow.com/questions/17892313/sieve-of-eratosthenes-with-wheel-factorization

4

u/Zizosk Mar 20 '25

yeah, i gotta admit it is a bit similar but it lacks some major features like the heap, and also it isn't very clear In my opinion 

13

u/[deleted] Mar 20 '25

This is a very small set of numbers, without a formal proof I don’t see your paper getting into a journal. Papers don’t help as much as you’d hope they do with college admissions, if you really want to get a leg up by doing research see if you can get into a local prof’s research group

6

u/Zizosk Mar 20 '25

problem is I'm not in the US or EU, where I live there aren't really research and scientific institutions unfortunately 

6

u/[deleted] Mar 20 '25

Then you are doing what you should be, learning and building things. Just make sure you go to college in the US or EU if you want to be taken seriously as a researcher.

9

u/[deleted] Mar 20 '25

Send the algorithm and I can work on a proof with you! I have a math degree, I might be able to point in a helpful direction if you want it to be rigorous