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!)
A057699 Primes whose reversal is a cube. 5

%I #19 Jun 07 2016 00:37:06

%S 521,806041,969407,1393939,2303461,3989683,4831037,5783273,8081153,

%T 8485181,11520991,15231851,23206301,25578253,29925251,32296051,

%U 48762541,52182343,57369149,61277761,67134511,67954643,74825299

%N Primes whose reversal is a cube.

%H Zak Seidov and Chai Wah Wu, <a href="/A057699/b057699.txt">Table of n, a(n) for n = 1..28987</a> n = 1..1500 from Zak Seidov.

%t Do[ If[ PrimeQ[ n ] && IntegerQ[ ToExpression[ StringReverse[ ToString[ n ] ] ]^(1/3) ], Print[ n ] ], {n, 1, 10^9} ]

%o (Python)

%o from sympy import isprime

%o A057699_list = []

%o for i in range(10**6):

%o if i % 10:

%o p = int(str(i**3)[::-1])

%o if isprime(p):

%o A057699_list.append(p)

%o A057699_list = sorted(A057699_list) # _Chai Wah Wu_, Jun 02 2016

%o (PARI) flip(n)=fromdigits(Vecrev(digits(n)))

%o Set(select(isprime, vector(1000,n,flip(n^3)))) \\ _Charles R Greathouse IV_, Jun 07 2016

%Y Cf. A000040, A007488, A272692 (first differences).

%K base,easy,nonn

%O 1,1

%A _G. L. Honaker, Jr._, Oct 23 2000

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 18 09:32 EDT 2024. Contains 371779 sequences. (Running on oeis4.)