OFFSET
1,2
COMMENTS
From Ulrich Krug (leuchtfeuer37(AT)gmx.de), Apr 27 2009: (Start)
The sequence is infinite by Dirichlet's theorem about primes in arithmetic progression.
No term of the sequence is of form 3k, because the sum of digits of 10^3*3k + 333 = 3*(10^3 + 259) is divisible by 3, violating the requirement of the definition. (End)
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
k=1: 1*10^3 + 777 = 1777 is prime, hence 1 is in the sequence.
k=50: 50*10^3 + 777 = 50777 is prime, hence 50 is in the sequence.
k=97: 97*10^3 + 777 = 97777 is prime, hence 97 is in the sequence.
MATHEMATICA
Select[Range[300], PrimeQ[1000#+777]&] (* Harvey P. Dale, Jun 06 2022 *)
PROG
(Magma) [ n: n in [0..300] | IsPrime(n*10^3+777) ];
(PARI) is(n)=isprime(n*10^3+777) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Parthasarathy Nambi, Feb 20 2005
EXTENSIONS
Extended by Ulrich Krug (leuchtfeuer37(AT)gmx.de), Apr 27 2009
Edited by R. J. Mathar, Apr 30 2009
More terms from Vincenzo Librandi, May 01 2009
STATUS
approved