MHB Efficiency of Sieve vs. Derivative Method for Primality Testing

  • Thread starter Thread starter Hugo1177
  • Start date Start date
  • Tags Tags
    Formula Test
AI Thread Summary
The discussion centers on the efficiency of the sieve of Eratosthenes versus the derivative method for primality testing. Participants note that the modulo operation can determine if a number is prime, but there are questions regarding the computational efficiency of both methods, especially for large numbers. While one participant finds the sieve simpler and less time-consuming, there is uncertainty about whether it is indeed more efficient for larger primes compared to the derivative method. The conversation highlights a lack of consensus on the best approach, particularly regarding polynomial time efficiency. Ultimately, the effectiveness of each method remains debated among those without deep expertise in computational time.
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
 
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Is it possible to arrange six pencils such that each one touches the other five? If so, how? This is an adaption of a Martin Gardner puzzle only I changed it from cigarettes to pencils and left out the clues because PF folks don’t need clues. From the book “My Best Mathematical and Logic Puzzles”. Dover, 1994.
Thread 'Imaginary Pythagoras'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...

Similar threads

Replies
96
Views
11K
Replies
16
Views
3K
Replies
3
Views
1K
Replies
6
Views
5K
Replies
4
Views
3K
Replies
1
Views
2K
Back
Top