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.

Showing 1-2 of 2 results.

A047934 Consider primes p with least positive primitive root g such that q=p+g is next prime after p; sequence gives values of p.

Original entry on oeis.org

2, 3, 5, 11, 29, 59, 101, 107, 149, 151, 179, 197, 227, 251, 269, 271, 337, 347, 367, 419, 461, 659, 733, 821, 827, 971, 991, 1019, 1021, 1061, 1091, 1229, 1277, 1301, 1427, 1451, 1619, 1667, 1787, 1877, 1931, 1949, 1997, 2027, 2141, 2237, 2267, 2309
Offset: 1

Views

Author

Keywords

Examples

			11 has primitive root 2 and 11+2 = 13 is prime after 11, so 11 is in sequence.
		

References

  • M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, National Bureau of Standards Applied Math. Series 55, 1964 (and various reprintings), p. 864.

Crossrefs

Cf. A047933, A047935. See also A001918.

Programs

  • Mathematica
    ok[p_] := (p + PrimitiveRoot[p] == NextPrime[p]); Select[Prime[Range[343]], ok]  (* Jean-François Alcover, May 03 2011 *)
    Transpose[Select[Partition[Prime[Range[400]],2,1],#[[2]]-#[[1]] == PrimitiveRoot[ #[[1]]]&]][[1]] (* Harvey P. Dale, Oct 08 2012 *)

Extensions

More terms from James Sellers, Dec 22 1999

A047933 Consider primes p with least positive primitive root g such that q=p+g is next prime after p; sequence gives values of q.

Original entry on oeis.org

3, 5, 7, 13, 31, 61, 103, 109, 151, 157, 181, 199, 229, 257, 271, 277, 347, 349, 373, 421, 463, 661, 739, 823, 829, 977, 997, 1021, 1031, 1063, 1093, 1231, 1279, 1303, 1429, 1453, 1621, 1669, 1789, 1879, 1933, 1951, 1999, 2029, 2143, 2239, 2269, 2311
Offset: 1

Views

Author

Keywords

Examples

			11 has primitive root 2 and 11+2 = 13 is prime after 11, so 13 is in sequence.
		

References

  • M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, National Bureau of Standards Applied Math. Series 55, 1964 (and various reprintings), p. 864.

Crossrefs

Cf. A047934, A047935. See also A001918.

Programs

  • Mathematica
    Total/@Select[{#,PrimitiveRoot[#]}&/@Prime[Range[400]],NextPrime[ First[#]] == Total[#]&]  (* Harvey P. Dale, Feb 18 2011 *)

Extensions

More terms from James Sellers, Dec 22 1999
Showing 1-2 of 2 results.