OFFSET
1,2
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
10 is in the sequence because A007953(10) = 1 and 1 + 10*1 = 11 is prime.
MAPLE
ds:= n -> convert(convert(n, base, 10), `+`):
filter:= n -> isprime(1+n*ds(n)):
select(filter, [$1..1000]); # Robert Israel, Jun 20 2019
MATHEMATICA
Do[k = Plus @@ IntegerDigits[n]; If[PrimeQ[n*k + 1], Print[n]], {n, 1, 100}] (* Ryan Propper *)
Select[Range[150], PrimeQ[#*Total[IntegerDigits[#]]+1]&] (* Harvey P. Dale, May 25 2024 *)
PROG
(PARI) isok(k) = isprime(1+k*sumdigits(k)); \\ Michel Marcus, Jun 20 2019
(Magma) [k:k in [1..145] | IsPrime(1+k*(&+Intseq(k, 10)))]; // Marius A. Burtea, Jun 21 2019
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Yalcin Aktar, Dec 10 2003
EXTENSIONS
More terms from David Wasserman, Aug 31 2005
STATUS
approved