What are the method used to know bigger prime

  • Thread starter Thread starter rajeshmarndi
  • Start date Start date
  • Tags Tags
    Method Prime
rajeshmarndi
Messages
319
Reaction score
0
If we want to know whether a certain range of numbers, say between x and y, contain prime or not.

Do we use only the division method by all the prime less than the square root of y. If all the number are divisible, then there are no prime in that region.

Because according to the above method, if we want to know bigger prime, we need to know all the prime less than the square root of that number.Thanks.
 
Mathematics news on Phys.org
You can divide by all numbers from 2 to \sqrt{n}. This way you need no information beforehand but its a bit slower.
 
This can be done, but it is extremely ineffective. There are much more powerful primality tests. They can check if a 100-digit number is prime within seconds, whereas trial division (testing all smaller numbers) could not do this within the current age of the universe.
 
Other forms of sieve of eratosthenes.

We can place all odd numbers in 3 column. That is 1st row is 3,5 and 7. Second row is 9,11 and 13 and so on. The 1st column can be avoided, as they are all multiples of 3. Only 2nd and 3rd column will be our focus.

We start with 5^2, it fall on the 3rd column. In fact all number square lies on the 3rd column only. All the number upto 25 are prime on the 2nd and 3rd column. We then see for next primes which when multiply with 5 fall in the 2nd column, it is 5*7=35 on the 2nd column. Now we get inital composite number of 5 on the 2nd and 3rd column. Now we just go down on both the column by 5 rows. This will strike out all composite number by 5 on both the column. Similarly with the next prime which is 7 from the above primes and go down on both the column by 7 rows.

This way it become easy to strike out all composite number of the primes, starting from their square. And the primes are visible.

Is this method easier than sieve of eratosthenes, to strike out composite number of primes?When we strike out composite number of 5 and 7 by just going down by 5 and 7 rows , we get primes upto 121. Then from there, we strike out 11 composite number, by going down by 11 rows, we get primes upto 169.

That is, when we strike out all composite number starting with their square on both 2nd and 3rd column by n primes, we get primes upto the square of the (n+1)th prime.
 
rajeshmarndi said:
Is this method easier than sieve of eratosthenes, to strike out composite number of primes?
This is the sieve of Eratosthenes. It does not matter how exactly you write down the numbers, this is just a minor detail.

Anyway, this method is clearly limited by memory - in 1 TB, you cannot store data for more than a few trillion numbers. It will fail before you reach 100,000,000,000,000, and this is a tiny number compared to those used for cryptography, for example.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
I'm interested to know whether the equation $$1 = 2 - \frac{1}{2 - \frac{1}{2 - \cdots}}$$ is true or not. It can be shown easily that if the continued fraction converges, it cannot converge to anything else than 1. It seems that if the continued fraction converges, the convergence is very slow. The apparent slowness of the convergence makes it difficult to estimate the presence of true convergence numerically. At the moment I don't know whether this converges or not.

Similar threads

Replies
24
Views
2K
Replies
0
Views
2K
Replies
12
Views
2K
Replies
1
Views
2K
Replies
2
Views
8K
Replies
7
Views
2K
Back
Top