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.

A233561 Products p*q of distinct primes such that (p*q - 1)/2 is prime.

Original entry on oeis.org

15, 35, 39, 87, 95, 119, 123, 143, 159, 203, 215, 219, 299, 303, 327, 335, 395, 447, 515, 527, 543, 623, 635, 695, 699, 707, 767, 779, 803, 843, 879, 899, 923, 959, 1007, 1043, 1047, 1115, 1139, 1199, 1203, 1227, 1263, 1347, 1355, 1383, 1403, 1623, 1643
Offset: 1

Views

Author

Clark Kimberling, Dec 14 2013

Keywords

Examples

			15 = 3*5 is the least product of distinct primes p and q for which (p*q - 1)/2 is prime, so a(1) = 15.
		

Crossrefs

Programs

  • Mathematica
    t = Select[Range[1, 7000, 2], Map[Last, FactorInteger[#]] == Table[1, {2}] &]; Take[(t - 1)/2, 120] (* A234093 *)
    v = Flatten[Position[PrimeQ[(t - 1)/2], True]] ; w = Table[t[[v[[n]]]], {n, 1, Length[v]}]  (* A233561 *)
    (w - 1)/2 (* A234095 *)  (* Peter J. C. Moses, Dec 23 2013 *)
    With[{upto=2000},Select[Times@@#&/@Select[Subsets[Prime[Range[ PrimePi[ upto/2]]],{2}],PrimeQ[(Times@@#-1)/2]&]//Union,#<=upto&]] (* Harvey P. Dale, Nov 02 2017 *)