The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A179551 Primes p such that p plus the sum of cubes of its digits yields a prime. 1
11, 13, 31, 73, 79, 101, 103, 109, 127, 167, 257, 277, 307, 367, 389, 419, 431, 439, 523, 587, 613, 653, 673, 677, 691, 761, 907, 947, 983, 1021, 1061, 1063, 1151, 1153, 1193, 1283, 1289, 1409, 1423, 1483, 1553, 1559, 1579, 1621, 1733, 1759, 1823, 1847, 1861 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
a(5)=79 since 79 + (7^3 + 9^3) = 1151 is a prime.
MAPLE
filter:= proc(p) local t, r;
if not isprime(p) then return false fi;
r:= add(t^3, t=convert(p, base, 10));
isprime(p+r)
end proc:
select(filter, [seq(i, i=3..10000, 2)]); # Robert Israel, Mar 30 2021
MATHEMATICA
Select[Prime[Range[300]], PrimeQ[#+Total[IntegerDigits[#]^3]]&] (* Harvey P. Dale, Feb 13 2011 *)
PROG
(Python)
from sympy import isprime, primerange
def sumddd(n): return sum(int(d)**3 for d in str(n))
def list(nn):
for p in primerange(2, nn+1):
if isprime(p+sumddd(p)): print(p, end=", ")
list(1861) # Michael S. Branicky, Mar 30 2021
CROSSREFS
Cf. A076162.
Sequence in context: A089755 A262254 A082238 * A054262 A053649 A104151
KEYWORD
nonn,base
AUTHOR
Carmine Suriano, Jul 19 2010
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 May 15 19:33 EDT 2024. Contains 372549 sequences. (Running on oeis4.)