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.

A102338 Numbers k such that 10k+3 is prime.

Original entry on oeis.org

0, 1, 2, 4, 5, 7, 8, 10, 11, 16, 17, 19, 22, 23, 26, 28, 29, 31, 35, 37, 38, 43, 44, 46, 50, 52, 56, 59, 61, 64, 65, 67, 68, 73, 74, 77, 82, 85, 86, 88, 95, 98, 101, 103, 106, 109, 110, 112, 115, 116, 119, 121, 122, 128, 130, 137, 142, 143, 145, 148, 149, 152, 154, 155
Offset: 1

Views

Author

Parthasarathy Nambi, Feb 20 2005

Keywords

Examples

			For n=1, 10k+3 = 13 (prime).
For n=26, 10k+3 = 263 (prime).
For n=50, 10k+3 = 503 (prime).
		

Crossrefs

Cf. A023238 (subsequence of primes), A030431, A049508.

Programs

  • Magma
    [n: n in [0..1000]| IsPrime(10*n+3)]; // Vincenzo Librandi, Apr 06 2011
    
  • Mathematica
    Select[Range[0, 160], PrimeQ[10# + 3] &] (* Ray Chandler, Nov 07 2006 *)
  • PARI
    isok(n) = isprime(10*n+3); \\ Michel Marcus, Sep 08 2016

Extensions

Edited and extended by Ray Chandler, Nov 07 2006