+ 5

What is the quickest algorithm to find prime numbers?

18th Dec 2017, 3:28 PM
Prabhanu Gunaweera
Prabhanu Gunaweera - avatar
3 odpowiedzi
+ 8
download files with prime numbers. It is not a real algorithm but i sometimes use that cheat.
19th Dec 2017, 7:27 AM
Oma Falk
Oma Falk - avatar
+ 3
Step 1: Input N & M Step 2: While (N < M) I=2 Step 4: While (I<N) Step 5: IF N%I == 0 goto Step 7 Step 6: I++ Step 7: IF I==NUM Print NUM Step 8: N++
18th Dec 2017, 3:34 PM
💻Amey💻
💻Amey💻 - avatar
+ 1
😊😊😊
18th Dec 2017, 3:55 PM
Shashini Wimanshi Abeywickrama