login
A067841
Numbers n such that n and prime(n) end with the same three digits.
3
1491, 1723, 4119, 4437, 6347, 6931, 7817, 9551, 12083, 12637, 13647, 15103, 16637, 17181, 18697, 20281, 22743, 23071, 23787, 24833, 25753, 25833, 26173, 26349, 27129, 29201, 29287, 29543, 30059, 30563, 33163, 33673, 34241, 35919, 36003, 36853, 37289, 38653, 39927
OFFSET
1,1
COMMENTS
Subsequence of A067838. - Michel Marcus, Nov 18 2013
EXAMPLE
prime(1491)=12491 hence 1491 is in the sequence.
MATHEMATICA
Select[Range[2, 4 10^4], Mod[Prime[#], 1000]== Mod[#, 1000] &] (* Vincenzo Librandi, Oct 03 2017 *)
PROG
(PARI) isok(n) = (n % 1000) == (prime(n) % 1000); \\ Michel Marcus, Nov 18 2013
(Magma) [n: n in [1..4*10^4] | (n mod 1000) eq (NthPrime(n) mod 1000)]; // Vincenzo Librandi Oct 03 2017
CROSSREFS
Sequence in context: A137705 A367769 A171617 * A237968 A062912 A328975
KEYWORD
easy,nonn,base
AUTHOR
Benoit Cloitre, Mar 07 2002
STATUS
approved