![]() |
|
|
#199 |
|
May 2010
Prime hunting commission.
69016 Posts |
Hmm.. That problem seems interesting.
|
|
|
|
|
|
#200 |
|
Aug 2006
3×1,993 Posts |
I posted it here:
http://mathoverflow.net/questions/34...mes-in-a-pap-3 |
|
|
|
|
|
#201 |
|
May 2010
Prime hunting commission.
69016 Posts |
My setup on Python for listing numbers that have no factors below a given prime number, in a given range: Note that n > largest prime listed
Code:
for n in range(1, 700): if n%2 !=0 and n%3 != 0 and n%5 != 0 and n%7 != 0 and n%11!= 0 and n%13 != 0 and n%17 != 0 and n%19 != 0 and n%23 != 0: print n Last fiddled with by 3.14159 on 2010-08-02 at 14:54 |
|
|
|
|
|
#202 |
|
Aug 2006
3×1,993 Posts |
So either use a wheel sieve (dividing by, say, 30n + {1,7,11,13,17,19,23,29} in addition to the primes dividing the wheel, in this case 2,3,5) or make an array of small primes and loop through it.
|
|
|
|
|
|
#203 | |
|
May 2010
Prime hunting commission.
32208 Posts |
Quote:
Also: A recommended list of programs for small primes? (I currently prove small primes via trial division or Miller-Rabin, in two separate applets. (About 30-60 iterations). Sadly, the latter applet cannot handle Proth numbers.) Last fiddled with by 3.14159 on 2010-08-02 at 16:02 |
|
|
|
|
|
|
#204 | |
|
"Ben"
Feb 2007
7·503 Posts |
Quote:
YAFU can give you a list of primes in any range you want up to 4*10^18... of course I'd keep the range smallish (1 billion or less) unless you have equal (and very great) amounts of patience and hard disk space. Code:
% time yafu "primes(0,1000000000,0)" -pfile ans = 50847534 10.188u 1.249s 0:16.31 70.0% 0+0k 0+0io 0pf+0w % tail primes.dat 999999733 999999739 999999751 999999757 999999761 999999797 999999883 999999893 999999929 999999937 |
|
|
|
|
|
|
#205 | |
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
Quote:
Last fiddled with by 3.14159 on 2010-08-02 at 16:48 |
|
|
|
|
|
|
#206 |
|
Aug 2006
3·1,993 Posts |
|
|
|
|
|
|
#207 | |
|
May 2010
Prime hunting commission.
110100100002 Posts |
Quote:
|
|
|
|
|
|
|
#208 |
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
So, far, I have sieved up to about 2.66 * 1012 + 1 in NewPGen, while searching for a 66893 to 66896-digit prime. The candidates left are about 1 in 14. I need to get rid of about 12900 more candidates to get 1 in 20.
Last fiddled with by 3.14159 on 2010-08-02 at 20:57 |
|
|
|
|
|
#209 |
|
Jun 2003
508710 Posts |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Prime posting thread, part 2. (With a catch.) | 3.14159 | Miscellaneous Math | 55 | 2010-11-19 23:55 |
| Tiny range request .... 555.1M | petrw1 | LMH > 100M | 1 | 2010-07-13 15:35 |
| Other primes thread | nuggetprime | No Prime Left Behind | 32 | 2009-10-21 21:48 |
| Error: tiny factoring failed | 10metreh | Msieve | 26 | 2009-03-08 23:28 |
| Tiny error on nfsnet pages. | antiroach | NFSNET Discussion | 1 | 2003-07-08 00:27 |