cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A138623 Primes congruent to 5 mod 17.

Original entry on oeis.org

5, 73, 107, 277, 311, 379, 617, 719, 787, 821, 991, 1093, 1229, 1297, 1399, 1433, 1637, 2011, 2113, 2351, 2521, 2657, 2861, 2963, 3167, 3371, 3541, 3643, 3677, 3779, 3847, 3881, 4051, 4153, 4289, 4357, 4391, 4493, 4561, 4663, 4799, 4969, 5003, 5309, 5479
Offset: 1

Views

Author

Keywords

Examples

			17*0+5=5, 17*4+5=73, 17*6+5=107, 17*16+5=277,...
		

Crossrefs

Cf. A000040.

Programs

  • Magma
    [p: p in PrimesUpTo(6000) | p mod 17 eq 5 ]; // Vincenzo Librandi, Aug 15 2012
    
  • Mathematica
    a={};Do[x=17*n+5;If[PrimeQ[x],AppendTo[a,x]],{n,10^2}];a
    Select[Prime[Range[800]], MemberQ[{5}, Mod[#, 17]] &] (* Vincenzo Librandi, Aug 15 2012 *)
    Select[Range[5,5500,17],PrimeQ] (* Harvey P. Dale, Aug 10 2021 *)
  • PARI
    is(n)=isprime(n) && n%17==5 \\ Charles R Greathouse IV, Jul 02 2016

Formula

a(n) ~ 16n log n. - Charles R Greathouse IV, Jul 02 2016

Extensions

More terms from N. J. A. Sloane, Jul 11 2008
Edited by N. J. A. Sloane at the suggestion of R. J. Mathar, Jul 20 2008