The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A117819 Final digit d of n is in the sequence iff d is prime or n is prime. 1
2, 3, 5, 7, 1, 2, 3, 5, 7, 9, 2, 3, 5, 7, 9, 1, 2, 3, 5, 7, 1, 2, 3, 5, 7, 2, 3, 5, 7, 9, 1, 2, 3, 5, 7, 1, 2, 3, 5, 7, 9, 2, 3, 5, 7, 9, 2, 3, 5, 7, 1, 2, 3, 5, 7, 9, 2, 3, 5, 7, 2, 3, 5, 7, 1, 2, 3, 5, 7, 9, 2, 3, 5, 7, 9, 1, 2, 3, 5, 7, 2, 3, 5, 7, 2, 3, 5, 7, 9, 1, 2, 3, 5, 7, 1, 2, 3, 5, 7, 9, 2, 3, 5, 7, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
Calculations:
n: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ...
d: - 2 3 - 5 - 7 - - -- -1 -2 -3 -- -5 -- -7 -- -9 -- ...
MATHEMATICA
Table[If[PrimeQ[n]||PrimeQ[Mod[n, 10]], Mod[n, 10], Nothing], {n, 300}] (* Harvey P. Dale, Oct 03 2016 *)
PROG
(PARI) for(n=1, 211, if(isprime(d=n%10)||isprime(n), print1(d, ", ")))
CROSSREFS
Cf. A118385.
Sequence in context: A228355 A065859 A258062 * A074461 A285095 A073342
KEYWORD
base,easy,nonn
AUTHOR
Giovanni Teofilatto, Apr 30 2006
EXTENSIONS
Edited, corrected and extended by Klaus Brockhaus, May 02 2006
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 25 05:47 EDT 2024. Contains 372782 sequences. (Running on oeis4.)