login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A157008 Four-digit primes that have at least 4 permutations (without leading zeros) that are primes. 1
1013, 1019, 1039, 1049, 1061, 1069, 1097, 1123, 1153, 1163, 1187, 1193, 1217, 1237, 1249, 1279, 1283, 1289, 1307, 1367, 1373, 1381, 1399, 1423, 1427, 1439, 1453, 1459, 1483, 1487, 1499, 1523, 1553, 1559, 1567, 1571, 1579, 1583, 1621, 1627, 1669, 1693 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The sequence is finite with last term a(123) = 7993.
Only distinct permutations are counted. For example, 1117 is not in the sequence because the distinct permutations of its digits are 1117, 1171, 1711, and 7111, of which only 1117 and 1171 are prime. Also, only the first occurrence of a permutation of four digits is included in the sequence. For example, 1031 is not in the sequence because a permutation of its digits gives 1013, which is already in the sequence. - Nathaniel Johnston, Jun 24 2011
Each term has three or four distinct digits. A term may include up to two of any one positive digit and such identical digits may be adjacent. The terms 1237 and 1279 have the most such distinct prime permutations with 11 each. Of all terms with pairs of identical digits, 1123 and 1193 have the most with 8 each. Other noteworthy terms: 2357 (consecutive prime digits) and 4567 (consecutive digits). - Rick L. Shepherd, Feb 17 2013
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..123 (full sequence)
MAPLE
A157008:={}: p:=1009: while p<=9999 do nump:=0: per:=combinat[permute](convert(p, base, 10)): for k from 1 to nops(per) do v:=op(convert(per[k], base, 10, 10000)): if(member(v, A157008))then nump:=0:break:fi: nump:=nump+`if`(isprime(v) and v>=1000, 1, 0): od: if(nump>=4)then A157008:=A157008 union {p}: fi: p:=nextprime(p): od: op(sort(convert(A157008, list))); # Nathaniel Johnston, Jun 24 2011
CROSSREFS
Sequence in context: A266369 A165295 A069489 * A161404 A252634 A250610
KEYWORD
nonn,base,fini,full
AUTHOR
Ki Punches, Feb 20 2009
EXTENSIONS
Definition clarified and several terms corrected by Nathaniel Johnston, Jun 24 2011
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 12:15 EDT 2024. Contains 371969 sequences. (Running on oeis4.)