|
|
A117790
|
|
Lucas numbers for which the sum of the digits is a prime.
|
|
1
|
|
|
1, 3, 7, 11, 29, 47, 76, 199, 322, 2207, 24476, 1149851, 141422324, 969323029, 2537720636, 10749957122, 73681302247, 119218851371, 312119004989, 505019158607, 2139295485799, 3461452808002, 5600748293801, 100501350283429
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
EXAMPLE
|
199 is in the sequence because (1) it is a Lucas number and (2) the sum of its digits 1+9+9=19 is a prime number.
|
|
MATHEMATICA
|
Join[{1}, Select[LucasL[Range[100]], PrimeQ[Total[IntegerDigits[#]]]&]] (* Harvey P. Dale, Sep 16 2022 *)
|
|
PROG
|
(Python)
from sympy import isprime
for _ in range(10**6):
if isprime(sum(int(d) for d in str(b))):
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,nonn
|
|
AUTHOR
|
Luc Stevens (lms022(AT)yahoo.com), Apr 15 2006
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|