Getting prime numbers | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Getting prime numbers

i dont know the logic and prove it to be a prime number

10th Nov 2017, 9:22 AM
Ynelle Kyle Novicio
Ynelle Kyle Novicio - avatar
2 Answers
+ 3
prime numbers mainly use the idea of "Sieve of Erathnostenes", an algorithm to generate peimes based on the Greek Mathematician called Erathnostenes
10th Nov 2017, 10:27 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar