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.

A383636 Integers k such that there is no prime of the form x*y+1 with x+y=k.

Original entry on oeis.org

1, 6, 30, 54
Offset: 1

Views

Author

Michel Marcus, May 03 2025

Keywords

Comments

If k is odd, one of x or y is even. If k is even, there are cases where both x and y are odd. There is no need to check them, since we know in advance that x*y + 1 is even. - Ivan N. Ianakiev, May 04 2025
It is very likely that there are no further terms.

Crossrefs

Programs

  • Mathematica
    fQ[n_]:=If[OddQ[n],Select[Range[n/2],PrimeQ[(#*(n-#))+1]&]=={},Select[Range[2,n/2,2],PrimeQ[(#*(n-#))+1]&]=={}]; Select[Range[100],fQ] (* Ivan N. Ianakiev, May 04 2025 *)
  • PARI
    isok(k) = for(i=1, k\2, if(isprime(i*(k-i)+1), return(0))); 1;