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!)
A192608 Numbers n such that the concatenation of n^5 n^4 n^3 n^2 n^1 n^0 is prime. 3
9, 39, 69, 228, 294, 594, 612, 801, 849, 921, 984, 1821, 1827, 1842, 1854, 1872, 1893, 1896, 2031, 2193, 2202, 2319, 2370, 2421, 2454, 2466, 2508, 2535, 2604, 2607, 2712, 2997, 3009, 3084, 3102, 3108, 3351, 3477, 3843, 3879, 3897, 3900, 3921, 4095, 4161 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
9 is in the list because the concatenation of 9^5 9^4 9^3 9^2 9^1 9^0 is 5904965617298191 and this number is prime.
MATHEMATICA
Select[Range[4200], PrimeQ[FromDigits[Flatten[IntegerDigits/@{#^5, #^4, #^3, #^2, #, 1}]]]&] (* Harvey P. Dale, Jun 25 2022 *)
PROG
(PARI) isok(n) = {s = ""; for(i=0, 5, s = concat(Str(n^i), s)); isprime(eval(s)); } \\ Michel Marcus, Feb 04 2014
(PARI) is(n)=isprime(eval(Str(n^5, n^4, n^3, n^2, n, 1))) \\ Charles R Greathouse IV, Feb 04 2014
CROSSREFS
Sequence in context: A053181 A348545 A346950 * A158447 A281381 A226449
KEYWORD
nonn,base
AUTHOR
Claudio Meller, Jul 05 2011
EXTENSIONS
Extended by Charles R Greathouse IV, Jul 05 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 16 08:21 EDT 2024. Contains 371698 sequences. (Running on oeis4.)