|
|
A136260
|
|
Primes which contain the digit 2 or the digit 3.
|
|
0
|
|
|
2, 3, 13, 23, 29, 31, 37, 43, 53, 73, 83, 103, 113, 127, 131, 137, 139, 163, 173, 193, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 421, 431, 433
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
MAPLE
|
a:=proc(n) local nn: nn:=convert(convert(n, base, 10), set): if isprime(n)=true and 0 < nops(`intersect`({2, 3}, nn)) then n else end if end proc: seq(a(n), n= 1..400); # Emeric Deutsch, Mar 31 2008
|
|
MATHEMATICA
|
fQ[n_] := Block[{id = IntegerDigits@ n}, MemberQ[id, 2] || MemberQ[id, 3]]; Select[ Prime@ Range@ 84, fQ@ # &] (* Robert G. Wilson v, Apr 19 2008 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|