OCTADE |
mail  files  register  groups  login |
1 |
<ue7grv$g46r$1@dont-email.me>
copy midhttps://news.octade.net/USENET/article-flat.php?id=5&group=sci.crypt#5
copy link Newsgroups: sci.cryptStefan Claas wrote:
> Richard Harnden wrote:
>
> > On 02/09/2023 11:47, Stefan Claas wrote:
> > > This output shows you prime numbers and their position,
> > > like prime 2 : position 1
> >
> > I don't really see the point, sorry.
>
> Well, if you look at prime tables, on the Internet, they
> usually do not list the position, i.e. the nth prime.
> >
> > >
> > > prime : year
> > >
> > > 16381 : 1900
> > > 16411 : 1901
> >
> > So 16381 is the 1900th prime, etc.
>
> Yes, correct.
>
> > [...]
> > > 17581 : 2022
> > > 17597 : 2023
> > >
> > > https://github.com/stefanclaas/primes
> >
> > "ProbablyPrime"? For numbers this low you should be able to tell
> > for sure.
>
> ProbablyPrime function is the Miller-Rabin test used, set to 20.
And one thing I like to figure out what is the billionth prime number.
So far I have:
2 : 1
29 : 10
541 : 100
7919 : 1000
104729 : 10000
1299709 : 100000
15485863 : 1000000
179424673 : 10000000
2038074743 : 100000000
Regards
Stefan
<ue7rc7$i5ee$1@dont-email.me>
copy midhttps://news.octade.net/USENET/article-flat.php?id=6&group=sci.crypt#6
copy link Newsgroups: sci.cryptOn 17/09/2023 19:34, Stefan Claas wrote:
> Stefan Claas wrote:
>
>> Richard Harnden wrote:
>>
>>> On 02/09/2023 11:47, Stefan Claas wrote:
>>>> This output shows you prime numbers and their position,
>>>> like prime 2 : position 1
>>>
>>> I don't really see the point, sorry.
>>
>> Well, if you look at prime tables, on the Internet, they
>> usually do not list the position, i.e. the nth prime.
>>>
>>>>
>>>> prime : year
>>>>
>>>> 16381 : 1900
>>>> 16411 : 1901
>>>
>>> So 16381 is the 1900th prime, etc.
>>
>> Yes, correct.
>>
>>> [...]
>>>> 17581 : 2022
>>>> 17597 : 2023
>>>>
>>>> https://github.com/stefanclaas/primes
>>>
>>> "ProbablyPrime"? For numbers this low you should be able to tell
>>> for sure.
>>
>> ProbablyPrime function is the Miller-Rabin test used, set to 20.
>
> And one thing I like to figure out what is the billionth prime number.
>
> So far I have:
>
> 2 : 1
> 29 : 10
> 541 : 100
> 7919 : 1000
> 104729 : 10000
> 1299709 : 100000
> 15485863 : 1000000
> 179424673 : 10000000
> 2038074743 : 100000000
>
> Regards
> Stefan
>
>
Just google for your first few numbers ...
A006988 a(n) = (10^n)-th prime.
2, 29, 541, 7919, 104729, 1299709, 15485863, 179424673, 2038074743,
22801763489, 252097800623, 2760727302517, 29996224275833,
323780508946331, 3475385758524527, 37124508045065437,
394906913903735329, 4185296581467695669, 44211790234832169331
<ue9iap$1pbdi$1@dont-email.me>
copy midhttps://news.octade.net/USENET/article-flat.php?id=7&group=sci.crypt#7
copy link Newsgroups: sci.cryptRichard Harnden wrote:
> On 17/09/2023 19:34, Stefan Claas wrote:
> > Stefan Claas wrote:
> >
> >> Richard Harnden wrote:
> >>
> >>> On 02/09/2023 11:47, Stefan Claas wrote:
> >>>> This output shows you prime numbers and their position,
> >>>> like prime 2 : position 1
> >>>
> >>> I don't really see the point, sorry.
> >>
> >> Well, if you look at prime tables, on the Internet, they
> >> usually do not list the position, i.e. the nth prime.
> >>>
> >>>>
> >>>> prime : year
> >>>>
> >>>> 16381 : 1900
> >>>> 16411 : 1901
> >>>
> >>> So 16381 is the 1900th prime, etc.
> >>
> >> Yes, correct.
> >>
> >>> [...]
> >>>> 17581 : 2022
> >>>> 17597 : 2023
> >>>>
> >>>> https://github.com/stefanclaas/primes
> >>>
> >>> "ProbablyPrime"? For numbers this low you should be able to tell
> >>> for sure.
> >>
> >> ProbablyPrime function is the Miller-Rabin test used, set to 20.
> >
> > And one thing I like to figure out what is the billionth prime
> > number.
> >
> > So far I have:
> >
> > 2 : 1
> > 29 : 10
> > 541 : 100
> > 7919 : 1000
> > 104729 : 10000
> > 1299709 : 100000
> > 15485863 : 1000000
> > 179424673 : 10000000
> > 2038074743 : 100000000
> >
> > Regards
> > Stefan
> >
> >
>
> Just google for your first few numbers ...
>
> https://oeis.org/A006988
>
> A006988 a(n) = (10^n)-th prime.
>
> 2, 29, 541, 7919, 104729, 1299709, 15485863, 179424673, 2038074743,
> 22801763489, 252097800623, 2760727302517, 29996224275833,
> 323780508946331, 3475385758524527, 37124508045065437,
> 394906913903735329, 4185296581467695669, 44211790234832169331
Ah, ok. Thank you!
Regards
Stefan
<ueq13q$1fmve$1@dont-email.me>
copy midhttps://news.octade.net/USENET/article-flat.php?id=19&group=sci.crypt#19
copy link Newsgroups: sci.cryptStefan Claas wrote:
> Richard Harnden wrote:
>
> > On 17/09/2023 19:34, Stefan Claas wrote:
> > > Stefan Claas wrote:
> > >
> > >> Richard Harnden wrote:
> > >>
> > >>> On 02/09/2023 11:47, Stefan Claas wrote:
> > >>>> This output shows you prime numbers and their position,
> > >>>> like prime 2 : position 1
> > >>>
> > >>> I don't really see the point, sorry.
> > >>
> > >> Well, if you look at prime tables, on the Internet, they
> > >> usually do not list the position, i.e. the nth prime.
> > >>>
> > >>>>
> > >>>> prime : year
> > >>>>
> > >>>> 16381 : 1900
> > >>>> 16411 : 1901
> > >>>
> > >>> So 16381 is the 1900th prime, etc.
> > >>
> > >> Yes, correct.
> > >>
> > >>> [...]
> > >>>> 17581 : 2022
> > >>>> 17597 : 2023
> > >>>>
> > >>>> https://github.com/stefanclaas/primes
> > >>>
> > >>> "ProbablyPrime"? For numbers this low you should be able to
> > >>> tell for sure.
> > >>
> > >> ProbablyPrime function is the Miller-Rabin test used, set to 20.
> > >
> > > And one thing I like to figure out what is the billionth prime
> > > number.
> > >
> > > So far I have:
> > >
> > > 2 : 1
> > > 29 : 10
> > > 541 : 100
> > > 7919 : 1000
> > > 104729 : 10000
> > > 1299709 : 100000
> > > 15485863 : 1000000
> > > 179424673 : 10000000
> > > 2038074743 : 100000000
> > >
> > > Regards
> > > Stefan
> > >
> > >
> >
> > Just google for your first few numbers ...
> >
> > https://oeis.org/A006988
> >
> > A006988 a(n) = (10^n)-th prime.
> >
> > 2, 29, 541, 7919, 104729, 1299709, 15485863, 179424673, 2038074743,
> > 22801763489, 252097800623, 2760727302517, 29996224275833,
> > 323780508946331, 3475385758524527, 37124508045065437,
> > 394906913903735329, 4185296581467695669, 44211790234832169331
>
> Ah, ok. Thank you!
Well, I just found out another way is '$ sudo apt install
primesieve', for finding the nth prime, instead of looking up pages. :-)
Regards
Stefan
<ueq1t2$1fsd0$1@dont-email.me>
copy midhttps://news.octade.net/USENET/article-flat.php?id=20&group=sci.crypt#20
copy link Newsgroups: sci.cryptStefan Claas wrote:
> Stefan Claas wrote:
>
> > Richard Harnden wrote:
> >
> > > On 17/09/2023 19:34, Stefan Claas wrote:
> > > > Stefan Claas wrote:
> > > >
> > > >> Richard Harnden wrote:
> > > >>
> > > >>> On 02/09/2023 11:47, Stefan Claas wrote:
> > > >>>> This output shows you prime numbers and their position,
> > > >>>> like prime 2 : position 1
> > > >>>
> > > >>> I don't really see the point, sorry.
> > > >>
> > > >> Well, if you look at prime tables, on the Internet, they
> > > >> usually do not list the position, i.e. the nth prime.
> > > >>>
> > > >>>>
> > > >>>> prime : year
> > > >>>>
> > > >>>> 16381 : 1900
> > > >>>> 16411 : 1901
> > > >>>
> > > >>> So 16381 is the 1900th prime, etc.
> > > >>
> > > >> Yes, correct.
> > > >>
> > > >>> [...]
> > > >>>> 17581 : 2022
> > > >>>> 17597 : 2023
> > > >>>>
> > > >>>> https://github.com/stefanclaas/primes
> > > >>>
> > > >>> "ProbablyPrime"? For numbers this low you should be able to
> > > >>> tell for sure.
> > > >>
> > > >> ProbablyPrime function is the Miller-Rabin test used, set to
> > > >> 20.
> > > >
> > > > And one thing I like to figure out what is the billionth prime
> > > > number.
> > > >
> > > > So far I have:
> > > >
> > > > 2 : 1
> > > > 29 : 10
> > > > 541 : 100
> > > > 7919 : 1000
> > > > 104729 : 10000
> > > > 1299709 : 100000
> > > > 15485863 : 1000000
> > > > 179424673 : 10000000
> > > > 2038074743 : 100000000
> > > >
> > > > Regards
> > > > Stefan
> > > >
> > > >
> > >
> > > Just google for your first few numbers ...
> > >
> > > https://oeis.org/A006988
> > >
> > > A006988 a(n) = (10^n)-th prime.
> > >
> > > 2, 29, 541, 7919, 104729, 1299709, 15485863, 179424673,
> > > 2038074743, 22801763489, 252097800623, 2760727302517,
> > > 29996224275833, 323780508946331, 3475385758524527,
> > > 37124508045065437, 394906913903735329, 4185296581467695669,
> > > 44211790234832169331
> >
> > Ah, ok. Thank you!
>
> Well, I just found out another way is '$ sudo apt install
> primesieve', for finding the nth prime, instead of looking up pages.
> :-)
Just a quick test:
$ primesieve 100 -n
Sieve size = 32 KiB
Threads = 1
Seconds: 0.001
Nth prime: 541
$ primesieve 1000000000 -n
Sieve size = 32 KiB
Threads = 12
Seconds: 0.809
Nth prime: 22801763489
$ primesieve 10000000000 -n
Sieve size = 32 KiB
Threads = 12
Seconds: 12.133
Nth prime: 252097800623
$ primesieve 100000000000 -n
Sieve size = 32 KiB
Threads = 12
Seconds: 189.257
Nth prime: 2760727302517
Regards
Stefan
1 |