Click here to Skip to main content
15,897,273 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: TIL...... Pin
NeverHeardOfMe4-Nov-10 7:20
NeverHeardOfMe4-Nov-10 7:20 
GeneralRe: TIL...... Pin
_Erik_4-Nov-10 7:27
_Erik_4-Nov-10 7:27 
GeneralRe: TIL...... Pin
NeverHeardOfMe4-Nov-10 7:30
NeverHeardOfMe4-Nov-10 7:30 
GeneralRe: TIL...... Pin
MarkLoboo9-Nov-10 22:51
MarkLoboo9-Nov-10 22:51 
AnswerRe: TIL...... Pin
dbaechtel10-Nov-10 2:24
professionaldbaechtel10-Nov-10 2:24 
AnswerRe: TIL...... Pin
Daniel Pfeffer10-Nov-10 8:33
professionalDaniel Pfeffer10-Nov-10 8:33 
GeneralRe: TIL...... Pin
NeverHeardOfMe10-Nov-10 11:10
NeverHeardOfMe10-Nov-10 11:10 
GeneralRe: TIL...... Pin
Daniel Pfeffer10-Nov-10 18:05
professionalDaniel Pfeffer10-Nov-10 18:05 
NeverHeardOfMe wrote:
Daniel Pfeffer wrote:
All primes > 5 have the form p = 30*k + l, where l is 1, 7, 11, 13, 17, 19, 23 or 29. All other values of l have a common factor > 1 with 30, and therefore cannot produce primes.

That's quite an assertion... not saying it's wrong, but it can't be s starting point for a proof of anything; it has to be proved first. Surely.


I have simply performed the first three steps of the Sieve of Erathostenes, eliminating all numbers divisible by 2, 3 or 5, as follows:

30 is the product of the first three primes (2 * 3 * 5).

All integers may be represented as n = 30*k + l where k is any integer, and l is any integer in the range { 0..29 }.

Of these integers:
Any integers of the form 30*k + {0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28} are divisible by 2.
Any integers of the form 30*k + {0, 3, 6, 9, 12, 15, 18, 21, 24, 27} are divisible by 3.
Any integers of the form 30*k + {0, 5, 10, 15, 20, 25} are divisible by 5.

When all integers known to be divisible by 2, 3, or 5 are removed, we are left with 30*k + {1, 7, 11, 13, 17, 19, 23, 29} that MAY be prime.
GeneralRe: TIL...... (better proof) Pin
Daniel Pfeffer10-Nov-10 18:33
professionalDaniel Pfeffer10-Nov-10 18:33 
AnswerRe: TIL...... Pin
Michael Waters10-Nov-10 10:49
Michael Waters10-Nov-10 10:49 
AnswerRe: TIL...... Pin
cp987610-Nov-10 14:16
cp987610-Nov-10 14:16 
JokeThe full truth is 84. Pin
Bernhard Hiller25-Nov-10 22:32
Bernhard Hiller25-Nov-10 22:32 
JokeMore false idols Pin
cp987627-Nov-10 0:13
cp987627-Nov-10 0:13 
AnswerRe: TIL...... Pin
dpminusa10-Nov-10 14:54
dpminusa10-Nov-10 14:54 
Questionimage bounds after rotation Pin
mehdi001628-Oct-10 11:14
mehdi001628-Oct-10 11:14 
AnswerRe: image bounds after rotation [modified] PinPopular
Luc Pattyn28-Oct-10 11:39
sitebuilderLuc Pattyn28-Oct-10 11:39 
GeneralRe: image bounds after rotation Pin
Sauro Viti3-Nov-10 10:51
professionalSauro Viti3-Nov-10 10:51 
GeneralRe: image bounds after rotation Pin
Luc Pattyn3-Nov-10 11:10
sitebuilderLuc Pattyn3-Nov-10 11:10 
GeneralRe: image bounds after rotation Pin
Sauro Viti3-Nov-10 20:47
professionalSauro Viti3-Nov-10 20:47 
GeneralRe: image bounds after rotation Pin
harold aptroot3-Nov-10 21:40
harold aptroot3-Nov-10 21:40 
GeneralRe: image bounds after rotation Pin
Sauro Viti3-Nov-10 22:42
professionalSauro Viti3-Nov-10 22:42 
GeneralRe: image bounds after rotation Pin
Luc Pattyn4-Nov-10 2:50
sitebuilderLuc Pattyn4-Nov-10 2:50 
QuestionSimple Algebra Pin
mbadi24-Oct-10 22:59
mbadi24-Oct-10 22:59 
AnswerRe: Simple Algebra Pin
Tadeusz Westawic25-Oct-10 4:50
Tadeusz Westawic25-Oct-10 4:50 
QuestionInterest Calculation (for Pensions Schemes) Pin
mbadi24-Oct-10 21:57
mbadi24-Oct-10 21:57 

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.