Sujet : Re: OT: Re: Sieve of Erastosthenes optimized to the max
De : vir.campestris (at) *nospam* invalid.invalid (Vir Campestris)
Groupes : comp.lang.c++Date : 22. Aug 2024, 18:30:40
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <va7p3h$g9lc$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
User-Agent : Mozilla Thunderbird
On 20/08/2024 21:50, Scott Lurndal wrote:
Bonita Montero <Bonita.Montero@gmail.com> writes:
Am 19.08.2024 um 22:34 schrieb Vir Campestris:
I wrote a small program
Most people would use the standard command line
tools to do this (e.g. sort, uniq and diff).
She's on Windows :P
I just tried again to check my sanity. And decided neither of us are crazy. It's sensitive to the number of primes you ask for.
$ ./Bonita 100 Bonita.txt && grep -w 66049 Bonita.txt
$ ./Bonita 1000 Bonita.txt && grep -w 66049 Bonita.txt
$ ./Bonita 10000 Bonita.txt && grep -w 66049 Bonita.txt
$ ./Bonita 100000 Bonita.txt && grep -w 66049 Bonita.txt
$ ./Bonita 1000000 Bonita.txt && grep -w 66049 Bonita.txt
$ ./Bonita 10000000 Bonita.txt && grep -w 66049 Bonita.txt
$ ./Bonita 100000000 Bonita.txt && grep -w 66049 Bonita.txt
$ ./Bonita 1000000000 Bonita.txt && grep -w 66049 Bonita.txt
$ ./Bonita 10000000000 Bonita.txt && grep -w 66049 Bonita.txt
66049
$ ./Bonita 100000000000 Bonita.txt && grep -w 66049 Bonita.txt
66049
$
Andy