login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A165432
Numbers n such that the concatenation of n^0 n^1 n^2 n^3 n^4 is prime.
1
23, 51, 61, 113, 137, 179, 183, 203, 217, 229, 271, 273, 299, 307, 317, 331, 361, 399, 449, 467, 481, 633, 699, 701, 713, 797, 819, 833, 947, 993, 1021, 1039, 1073, 1117, 1187, 1193, 1269, 1371, 1407, 1413, 1427, 1437, 1451, 1453, 1467, 1469, 1511, 1521
OFFSET
1,1
LINKS
EXAMPLE
Example 23 is in the list because the concatenation of 23^0 23^1 23^2 23^3 23^4 is 12352912167279841 and this number is prime
MATHEMATICA
Select[Range[2000], PrimeQ[FromDigits[Flatten[{IntegerDigits[#^0], IntegerDigits[#^1], IntegerDigits[#^2], IntegerDigits[#^3], IntegerDigits[#^4]}]]] &]
Select[Range[2000], PrimeQ[FromDigits[Flatten[IntegerDigits/@(#^Range[0, 4])]]]&] (* Harvey P. Dale, Dec 18 2019 *)
CROSSREFS
Sequence in context: A185187 A157095 A281266 * A067625 A140689 A172034
KEYWORD
nonn,base
AUTHOR
Claudio Meller, Jul 05 2011
STATUS
approved