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!)
A360979 Primes that share no digits with their digit sum. 1
11, 13, 17, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 113, 131, 151, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 277, 293, 311, 313, 331, 349, 353, 359, 383, 389, 401, 409, 421, 431, 433, 439, 443, 449, 457, 479, 487, 499, 503, 509, 521, 523 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
a(5) = 29 is a term because 29 is prime and 2+9 = 11 shares no digits with 29.
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..1000)]);
MATHEMATICA
Select[Prime[Range[99]], !IntersectingQ[IntegerDigits[#], List[Total[IntegerDigits[#]]]]&] (* Stefano Spezia, Feb 28 2023 *)
PROG
(PARI) isok(p) = isprime(p) && !#setintersect(Set(digits(sumdigits(p))), Set(digits(p))); \\ Michel Marcus, Feb 27 2023
CROSSREFS
Primes not in A158473.
Sequence in context: A260715 A087681 A137669 * A152470 A191023 A078861
KEYWORD
nonn,base
AUTHOR
Robert Israel, Feb 27 2023
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 18 13:50 EDT 2024. Contains 372630 sequences. (Running on oeis4.)