![]() |
|
|
#34 |
|
Einyen
Dec 2003
Denmark
35×13 Posts |
I tested the 2 strings without "shuffling":
2n..20: Only prime is n=2: 421 for n<636 (61106 digits) 21..2n20: Two primes for prime n=2: 241 and n=4: 248161. No others for n<656 (65200 digits) I also tested how many of the n! numbers are prime for small n: n=2 (3 digits): 2 primes of 2 numbers n=4 (6 digits):11 primes of 24 numbers n=6 (10 digits): 104 primes of 720 numbers n=8 (16 digits): 4254 primes of 40320 numbers n=10(23 digits): 260732 primes of 3628800 numbers. |
|
|
|
|
|
#35 | ||
|
I quite division it
"Chris"
Feb 2005
England
31·67 Posts |
Quote:
All I could find was this: http://tech.groups.yahoo.com/group/p.../message/19065 Quote:
|
||
|
|
|
|
|
#36 |
|
Jun 2003
10011101110112 Posts |
While you're at it, it is probably a good idea to use the lexically largest string as the first one, which will yield bigger primes for a given combination.
|
|
|
|
|
|
#37 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36·13 Posts |
Done that last night. There were just two small primes: 842161, 8644322161.
That and unpermuted concat as other people have done. Nothing new up to n~=750. Which is as expected: a finite set, and a very short one, at that. (421 is in both sets) Last fiddled with by Batalov on 2011-02-09 at 22:31 Reason: 421 :-) |
|
|
|
|
|
#38 |
|
Undefined
"The unspeakable one"
Jun 2006
My evil lair
22·1,549 Posts |
|
|
|
|
|
|
#39 |
|
Jun 2003
5,051 Posts |
No. I don't mean sort _all_ of them. Just pick the largest one of the set to be the prefix. Permute the rest as usual. That way, your prime would be one of the biggest for the given n. It is a cheap optimization to get a minor increase in prime size.
|
|
|
|
|
|
#40 |
|
Aug 2006
3×1,993 Posts |
|
|
|
|
|
|
#41 | |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36×13 Posts |
Quote:
And with that in mind, a prp20624 (n=368). It had very few permutations away from a lexicographically reverse-sorted starting point. |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Digit strings containing primes | davar55 | Puzzles | 13 | 2018-03-15 14:46 |
| Sieving with powers of small primes in the Small Prime variation of the Quadratic Sieve | mickfrancis | Factoring | 2 | 2016-05-06 08:13 |
| Bashing Strings Parsimoniously in Linux | EdH | Programming | 15 | 2013-05-06 11:04 |
| ubasic question - strings | Andi47 | Programming | 5 | 2008-12-28 05:52 |
| Strings of Digits | davar55 | Puzzles | 5 | 2008-11-02 00:08 |