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!)
A158473 Primes whose digit sum contains one or more digits of the same prime. 4
2, 3, 5, 7, 19, 109, 127, 137, 139, 149, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 271, 281, 283, 307, 317, 337, 347, 367, 373, 379, 397, 419, 461, 463, 467, 491, 541, 557, 571, 613, 617, 619, 631, 641, 643, 647, 661, 673, 691, 719, 733, 739, 743, 751 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
Chris Caldwell, The First 1,000 Primes
EXAMPLE
139 is a prime whose digit sum of 13 contains the digits 1 and 3 which are also in the prime.
149 is a prime whose digit sum of 14 contains the digits 1 and 4 which are also in the prime.
419 is a prime whose digit sum of 14 contains the digits 1 and 4 which are also in the prime.
MAPLE
filter:= proc(n) local L, s;
L:= convert(n, base, 10);
s:= convert(L, `+`);
convert(convert(s, base, 10), set) intersect convert(L, set) <> {}
end proc:
select(filter, [seq(ithprime(i), i=1..100)]); # Robert Israel, Feb 27 2023
PROG
(PARI) isok(p) = isprime(p) && (#setintersect(Set(digits(p)), Set(digits(sumdigits(p)))) >= 1); \\ Michel Marcus, Nov 12 2017
CROSSREFS
Sequence in context: A289756 A236303 A117315 * A048420 A048405 A110457
KEYWORD
base,nonn
AUTHOR
Parthasarathy Nambi, Mar 20 2009
EXTENSIONS
Single-digit primes added by R. J. Mathar, Jul 08 2009
Typos in data corrected by D. S. McNeil and Andrew Weimholt, Aug 17 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 August 10 09:02 EDT 2024. Contains 375044 sequences. (Running on oeis4.)