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!)
A059008 Numbers n such that n^3 reversed is a prime. 5
5, 50, 52, 89, 118, 122, 152, 155, 157, 194, 211, 218, 226, 244, 247, 248, 251, 256, 271, 325, 326, 328, 413, 452, 455, 463, 466, 467, 481, 485, 487, 491, 499, 500, 503, 520, 521, 523, 526, 541, 544, 547, 563, 571, 581, 584, 685, 686, 701, 707, 716, 721 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
52 is in the sequence because the reverse of 52^3 is 806041 and it is a prime. - Indranil Ghosh, Feb 10 2017
MATHEMATICA
Select[ Range[ 1000 ], PrimeQ[ ToExpression[ StringReverse[ ToString[ #^3 ] ] ] ] & ]
Select[Range[1000], PrimeQ[IntegerReverse[#^3]]&] (* Harvey P. Dale, Dec 20 2023 *)
PROG
(Magma) [n: n in [1..800] | IsPrime(Seqint(Reverse(Intseq(n^3))))]; // Marius A. Burtea, Jan 12 2019
(PARI) isok(n) = isprime(fromdigits(Vecrev(digits(n^3)))); \\ Michel Marcus, Jan 12 2019
CROSSREFS
Cf. A007488.
Sequence in context: A247707 A082795 A217398 * A218290 A136890 A136889
KEYWORD
nonn,base
AUTHOR
Robert G. Wilson v, Jan 16 2001
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 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)