- #1
ExecNight
I am trying to find the best algorithm that will find the prime numbers just for fun..
I am not a programmer so let's talk here in english please..
For example ;
- For the algorithm to run faster it must not calculate even numbers.
a = 1
a = a + 2
the number that will be searched should increase like that..
- The number must first be divided by five..If the result is an integer the program should ignore the rest of the calculations..and return to a = a + 2
so that it can try a new number..
Any more ideas that can speed things up?
I am not a programmer so let's talk here in english please..
For example ;
- For the algorithm to run faster it must not calculate even numbers.
a = 1
a = a + 2
the number that will be searched should increase like that..
- The number must first be divided by five..If the result is an integer the program should ignore the rest of the calculations..and return to a = a + 2
so that it can try a new number..
Any more ideas that can speed things up?