Click here to Skip to main content
15,917,628 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: RRT Pin
Paul Conrad22-Nov-08 13:45
professionalPaul Conrad22-Nov-08 13:45 
QuestionWheel Factorization to simplify a Sieve of Eratosthenes Pin
PIEBALDconsult21-Nov-08 10:58
mvePIEBALDconsult21-Nov-08 10:58 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Luc Pattyn21-Nov-08 17:43
sitebuilderLuc Pattyn21-Nov-08 17:43 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
PIEBALDconsult22-Nov-08 3:29
mvePIEBALDconsult22-Nov-08 3:29 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Luc Pattyn22-Nov-08 4:24
sitebuilderLuc Pattyn22-Nov-08 4:24 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
PIEBALDconsult22-Nov-08 7:34
mvePIEBALDconsult22-Nov-08 7:34 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes [modified] Pin
PIEBALDconsult26-Nov-08 8:42
mvePIEBALDconsult26-Nov-08 8:42 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Luc Pattyn26-Nov-08 11:16
sitebuilderLuc Pattyn26-Nov-08 11:16 
Hi,

1.
65537 is F4; failing to report it is something Fermat will not take lightly.

2.
The most popular bug in prime programs seems to be a "less than SQRT(n)" test ignoring rounding stuff;
I tend to make sure and do "less/equal 1+SQRT(n)" occasionally wasting some cycles but not generating false primes. But your mistake must have been something different, since you skipped a real prime.

3.
now may be the time to switch to long integers in order to extend the capabilities of your app.
After that Win64 and lots of memory may become relevant.

4.
By entering an article on the subject, you might be awarded a CodeProject Spokesperson Certificate...

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Fixturized forever. Confused | :confused:


GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
PIEBALDconsult26-Nov-08 13:02
mvePIEBALDconsult26-Nov-08 13:02 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Luc Pattyn26-Nov-08 13:12
sitebuilderLuc Pattyn26-Nov-08 13:12 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
PIEBALDconsult26-Nov-08 17:56
mvePIEBALDconsult26-Nov-08 17:56 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Luc Pattyn26-Nov-08 18:48
sitebuilderLuc Pattyn26-Nov-08 18:48 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Luc Pattyn26-Nov-08 15:14
sitebuilderLuc Pattyn26-Nov-08 15:14 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
PIEBALDconsult26-Nov-08 18:49
mvePIEBALDconsult26-Nov-08 18:49 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
PIEBALDconsult14-Jan-09 17:50
mvePIEBALDconsult14-Jan-09 17:50 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Luc Pattyn15-Jan-09 1:11
sitebuilderLuc Pattyn15-Jan-09 1:11 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
PIEBALDconsult15-Jan-09 6:12
mvePIEBALDconsult15-Jan-09 6:12 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Luc Pattyn15-Jan-09 6:28
sitebuilderLuc Pattyn15-Jan-09 6:28 
AnswerRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Member 419459328-Nov-08 9:03
Member 419459328-Nov-08 9:03 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
PIEBALDconsult28-Nov-08 10:46
mvePIEBALDconsult28-Nov-08 10:46 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Luc Pattyn28-Nov-08 11:01
sitebuilderLuc Pattyn28-Nov-08 11:01 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes [modified] Pin
PIEBALDconsult29-Nov-08 4:13
mvePIEBALDconsult29-Nov-08 4:13 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Member 41945934-Jan-09 16:56
Member 41945934-Jan-09 16:56 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Member 41945935-Jan-09 11:06
Member 41945935-Jan-09 11:06 
GeneralRe: Wheel Factorization to simplify a Sieve of Eratosthenes Pin
Luc Pattyn28-Nov-08 11:33
sitebuilderLuc Pattyn28-Nov-08 11:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.