OFFSET
1,1
COMMENTS
An Ormiston pair (or rearrangement prime pair) is a pair of consecutive primes that use the same digits in a different order.
LINKS
Jens Kruse Andersen, Ormiston Tuples
Eric Weisstein's World of Mathematics, Rearrangement Prime Pair
EXAMPLE
(1802419, 1802491) is an Ormiston pair with gap 72, so 1802419 is in the sequence.
MATHEMATICA
Transpose[Select[Select[Partition[Prime[Range[800000]], 2, 1], Last[#]-First[#]==72&], Sort[IntegerDigits[First[#]]]==Sort[IntegerDigits[Last[#]]]&]][[1]] (* Harvey P. Dale, Feb 14 2011 *)
PROG
(Magma) [ p: p in PrimesUpTo(10000000) | q-p eq 72 and a eq b where a is Sort(Intseq(p)) where b is Sort(Intseq(q)) where q is NextPrime(p) ];
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Klaus Brockhaus, Aug 03 2009
EXTENSIONS
Keyword base added by Klaus Brockhaus, Sep 18 2009
STATUS
approved