10-23-2011, 07:37 PM
|
#53
|
behanjc & me are <3'ers
Join Date: Jul 2006
Posts: 2,051
|
Re: THE project euler thread
Quote:
Originally Posted by Reincarnate
Maybe something like this (building off SG's idea)
stuff
|
not quite
0 <= x < sqrt(n) list: [(1), 2, 3, 5]
sqrt(n) <= x < n/2 list: [7, 11, 13]
n/2 <= x list: [17, 19, 23, 29]
however, but my idea doesn't take into account longgone's new input, the fact that some of the primes from the first group might stand by themselves. however, if you combine your method with mine it should account for both cases pretty well.
Last edited by stargroup100; 10-23-2011 at 08:43 PM..
|
|
|