OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
R. J. Lemke Oliver and K. Soundararajan, Unexpected biases in the distribution of consecutive primes, arXiv:1603.03720 [math.NT], 2016.
R. J. Lemke Oliver and K. Soundararajan, Unexpected biases in the distribution of consecutive primes, Proceedings of the National Academy of Sciences of the United States of America, Vol. 113, No. 31 (2016), E4446-E4454.
MAPLE
filter:= p -> isprime(p) and nextprime(p) mod 10 = 3:
select(filter, [seq(i, i=1..4000, 10)]); # Robert Israel, Feb 20 2020
MATHEMATICA
First @ Transpose @ Select[Partition[Select[Range[4500], PrimeQ], 2, 1], Mod[First[#], 10] == 1 && Mod[Last[#], 10] == 3 &] (* Amiram Eldar, Jan 20 2020 *)
Prime[#]&/@SequencePosition[Table[Which[Mod[n, 10]==1, 1, Mod[n, 10]==3, -1, True, 0], {n, Prime[Range[600]]}], {1, -1}][[All, 1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, May 10 2020 *)
PROG
(PARI) isok(p) = isprime(p) && ((p % 10)==1) && ((nextprime(p+1) % 10) == 3); \\ Michel Marcus, Jan 20 2020
(Magma) [p: p in PrimesUpTo(4500)| (p mod 10 eq 1) and (NextPrime(p) mod 10 eq 3)]; // Marius A. Burtea, Jan 20 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
A.H.M. Smeets, Jan 20 2020
STATUS
approved