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!)
A194808 Twin primes modulo 5. 0
3, 0, 2, 1, 3, 2, 4, 4, 1, 1, 3, 4, 1, 1, 3, 1, 3, 2, 4, 2, 4, 4, 1, 4, 1, 1, 3, 2, 4, 2, 4, 4, 1, 4, 1, 1, 3, 1, 3, 2, 4, 4, 1, 1, 3, 1, 3, 1, 3, 4, 1, 4, 1, 2, 4, 1, 3, 4, 1, 4, 1, 1, 3, 2, 4, 2, 4, 1, 3, 4, 1, 1, 3, 4, 1, 1, 3, 1, 3, 1, 3, 4, 1, 2, 4, 4, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
a(n) = A001097(n) mod 5.
MATHEMATICA
Mod[Select[Prime[Range[300]], PrimeQ[# - 2] || PrimeQ[# + 2] &], 5] (* T. D. Noe, May 21 2012 *)
Mod[Union[Flatten[Select[Partition[Prime[Range[300]], 2, 1], #[[2]]-#[[1]] == 2&]]], 5] (* Harvey P. Dale, Apr 25 2018 *)
CROSSREFS
Sequence in context: A238133 A317922 A337320 * A329204 A268464 A165066
KEYWORD
nonn
AUTHOR
Jiri Mazurek, May 17 2012
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 15 11:13 EDT 2024. Contains 372540 sequences. (Running on oeis4.)