cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A057699 Primes whose reversal is a cube.

This page as a plain text file.
%I A057699 #19 Jun 07 2016 00:37:06
%S A057699 521,806041,969407,1393939,2303461,3989683,4831037,5783273,8081153,
%T A057699 8485181,11520991,15231851,23206301,25578253,29925251,32296051,
%U A057699 48762541,52182343,57369149,61277761,67134511,67954643,74825299
%N A057699 Primes whose reversal is a cube.
%H A057699 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 A057699 Do[ If[ PrimeQ[ n ] && IntegerQ[ ToExpression[ StringReverse[ ToString[ n ] ] ]^(1/3) ], Print[ n ] ], {n, 1, 10^9} ]
%o A057699 (Python)
%o A057699 from sympy import isprime
%o A057699 A057699_list = []
%o A057699 for i in range(10**6):
%o A057699     if i % 10:
%o A057699         p = int(str(i**3)[::-1])
%o A057699         if isprime(p):
%o A057699             A057699_list.append(p)
%o A057699 A057699_list = sorted(A057699_list) # _Chai Wah Wu_, Jun 02 2016
%o A057699 (PARI) flip(n)=fromdigits(Vecrev(digits(n)))
%o A057699 Set(select(isprime, vector(1000,n,flip(n^3)))) \\ _Charles R Greathouse IV_, Jun 07 2016
%Y A057699 Cf. A000040, A007488, A272692 (first differences).
%K A057699 base,easy,nonn
%O A057699 1,1
%A A057699 _G. L. Honaker, Jr._, Oct 23 2000