Generating Prime Numbers: Reloaded
Sean
Posted on June 5, 2020
So This Again
After posting my previous post I got okay feedback, but there was a key problem. My method to getting prime numbers was wrong. So I decided to create an alternative method that I know is fool proof.
My working solution
So this solution is pretty simple so I'm sure that even beginners will understand(last time I wrote my code in c++, ruby, python, and js, this time only python).
The Code:
Takes user input and generates all the primes under it(including the number itself if it's prime)
How would you have done it?
π πͺ π
π©
Sean
Posted on June 5, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
machinelearning Empower your Projects with Face Recognition SDK: 9 Must-Have Features for Developers
April 24, 2024