|
|
A214629
|
|
Primes p such that the sum of the digits plus the product of the digits is a prime.
|
|
4
|
|
|
11, 13, 19, 23, 29, 31, 37, 43, 53, 59, 61, 73, 79, 89, 97, 101, 223, 263, 283, 401, 409, 443, 601, 607, 809, 823, 829, 883, 1013, 1019, 1031, 1033, 1039, 1051, 1091, 1093, 1097, 1103, 1109, 1117, 1123, 1129, 1151, 1163, 1171, 1181, 1187, 1193, 1213, 1231, 1259
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
11 is in the sequence because A061762(11) = 3 is prime.
|
|
MAPLE
|
f:= proc(n) local L;
L:= convert(n, base, 10);
convert(L, `+`)+convert(L, `*`)
end proc:
select(p -> isprime(f(p)), [seq(ithprime(i), i=1..1000)]); # Robert Israel, May 07 2021
|
|
MATHEMATICA
|
f[n_] := Module[{in = IntegerDigits[n]}, Times @@ in + Plus @@ in]; Select[Prime[Range[300]], PrimeQ[f[#]] &]
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|