MHB Efficiency of Sieve vs. Derivative Method for Primality Testing

  • Thread starter Thread starter Hugo1177
  • Start date Start date
  • Tags Tags
    Formula Test
Click For Summary
SUMMARY

The discussion centers on the efficiency of the Sieve of Eratosthenes compared to the Derivative Method for primality testing. Participants agree that the Sieve of Eratosthenes is simpler and less time-consuming, especially for larger numbers. The conversation highlights the complexity of the Derivative Method, which involves taking multiple derivatives and performing division, suggesting it may not be optimal for practical use. Overall, the Sieve of Eratosthenes is favored for its straightforward implementation in determining prime numbers.

PREREQUISITES
  • Understanding of primality testing algorithms
  • Familiarity with the Sieve of Eratosthenes
  • Basic knowledge of calculus, specifically derivatives
  • Concept of computational complexity in algorithms
NEXT STEPS
  • Research the Sieve of Eratosthenes implementation in Python
  • Explore advanced primality testing algorithms like the AKS primality test
  • Learn about computational complexity classes, particularly P vs NP
  • Investigate the application of derivatives in numerical methods
USEFUL FOR

Mathematicians, computer scientists, and software developers interested in number theory and algorithm optimization will benefit from this discussion.

Hugo1177
Messages
2
Reaction score
0
We can determinate if one number is prime with the modulo operation.
https://www.researchgate.net/publication/346647223_Primality_Test_Formula
 
Mathematics news on Phys.org
Hugo1177 said:
We can determinate if one number is prime with the modulo operation.
https://www.researchgate.net/publication/346647223_Primality_Test_Formula
Interesting. However I find the usual sieve of Erastothenes to be simpler and less time consuming. (I believe that the two methods are related to each other anyway.)

-Dan
 
I am not an expert in computational time, are you sure that the sieve is better for big numbers? I hear that there aren´t a efficient form to determinate if a number is prime or not in polynomial time. Here you only have to do the 30th or 40th derivative and divide one number relatively big by other
 
Hugo1177 said:
I am not an expert in computational time, are you sure that the sieve is better for big numbers? I hear that there aren´t a efficient form to determinate if a number is prime or not in polynomial time. Here you only have to do the 30th or 40th derivative and divide one number relatively big by other
I'm not an expert either. I'm simply guessing that taking derivatives is more time consuming than doing the sieve. I admit I may be wrong.

-Dan
 

Similar threads

  • · Replies 96 ·
4
Replies
96
Views
12K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 29 ·
Replies
29
Views
5K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K