|
Search: id:A062337
|
|
|
| A062337 |
|
Primes whose sum of digits is 7. |
|
+0 4
|
|
| 7, 43, 61, 151, 223, 241, 313, 331, 421, 601, 1033, 1051, 1123, 1213, 1231, 1303, 1321, 2113, 2131, 2203, 2221, 2311, 3121, 3301, 4003, 4021, 4111, 4201, 5011, 5101, 10141, 10303, 10321, 10501, 11113, 11131, 11311, 12211, 12301, 13003, 14011
(list; graph; listen)
|
|
|
OFFSET
|
1,1
|
|
|
COMMENT
|
There are O((log n)^6) members of this sequence below n.
|
|
LINKS
|
Charles R Greathouse IV, Table of n, a(n) for n=1..10000
|
|
EXAMPLE
|
601 is a prime with sum of the digits =7, hence belongs to the sequence.
|
|
MATHEMATICA
|
Select[Prime[Range[3000]], Plus @@ IntegerDigits[ # ] == 7 &] (Zak Seidov (zakseidov(AT)yahoo.com), Feb 17 2005)
|
|
PROGRAM
|
(PARI) A062337(lim)={my(pow=ceil(log(floor(lim)-.5)/log(10)), n); print("Checking for members of A062337 up to 10^"pow); for(a=0, pow-1, for(b=0, a, for(c=0, b, for(d=0, c, for(e=0, d, for(f=0, e, n=10^a+10^b+10^c+10^d+10^e+10^f+1; if(isprime(n), print1(n", "))))))))};
(PARI) SumD(x)= { s=0; while (x>9, s+=x-10*(x\10); x\=10); return(s + x) } { default(primelimit, 2*10^8); n=0; forprime (p=2, 2*10^8, if (SumD(p) == 7, write("b062337.txt", n++, " ", p); if (n==500, break)) ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Aug 05 2009]
|
|
CROSSREFS
|
Subsequence of A062336. See also A000579.
Sequence in context: A062336 A085704 A061241 this_sequence A118703 A139832 A139848
Adjacent sequences: A062334 A062335 A062336 this_sequence A062338 A062339 A062340
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Jun 21 2001
|
|
EXTENSIONS
|
More terms from Larry Reeves (larryr(AT)acm.org), Jul 06 2001
Comments and program by Charles R Greathouse IV (charles.greathouse(AT)case.edu), Sep 11 2009
|
|
|
Search completed in 0.002 seconds
|