OFFSET
1,1
COMMENTS
Obviously, 2 and 5 cannot be part of such a 5-tuple.
Apart from 3, all the elements of the quintuple must have the same
residue mod 3, thus they are all = 1 or = -1 mod 6.
Two curious facts can be observed: for p=51721 and p=63601, there are
two possibilities for (p',p",p"',p""), which differ in both cases only
in p"": [p=51721, p""=44371 or 44683, p"'=22531, p"=12703, p'=8101],
resp. [63601, 26893 or 61417, 25939, 61, 7]. Secondly, the two
quintuples for p=51721 are followed by a quintuple whose sum is one of
smallest possible, only roughly half that of the two preceding
solutions.
LINKS
Project Euler, Problem 60: Prime pair sets
EXAMPLE
The second such 5-tuple is [18433, 12409, 2341, 1237, 7].
The two quintuplets [51721, 44371, 22531, 12703, 8101]
/*sum=139427*/ and [51721, 44683, 22531, 12703, 8101] /*sum=139739*/
are followed by [55621, 18493, 991, 883, 733] /*sum=76721*/.
The next "degenerate" case is [63601, 26893, 25939, 61, 7]
/*sum=116501*/ and [63601, 61417, 25939, 61, 7] /*sum=151025*/.
The third "degenerate" case is [71341, 63277, 54583, 7741,
241] /*sum=197183*/ and [71341, 63277, 54583, 36187, 241]
/*sum=225629*/.
PROG
(PARI) /* available from the author upon solving "Problem 60" on ProjectEuler.net */
CROSSREFS
KEYWORD
nonn,base
AUTHOR
M. F. Hasler, Apr 30 2008
STATUS
approved