editing
approved
editing
approved
nonn,look,changed
proposed
editing
editing
proposed
(PARI) A193262(n, c=0)={ n=2*prime(n); forprime(p=1, n/2, isprime(n-p) || next; isprime(p*(n-p)-2) & c++); c} \\ - __M. F. Hasler_, Aug 06 2011
proposed
editing
editing
proposed
a[n_] := Module[{t = 2 Prime[n], s = 0, p = 2, q}, While[True, q = t - p; If[q < p, Break[]]; If[PrimeQ[q] && PrimeQ[p q - 2], s++]; p = NextPrime[p]]; s];
Array[a, 100] (* Jean-François Alcover, Nov 11 2020, after Alois P. Heinz *)
approved
editing
editing
approved
seq (a(n), n=1..100); # Alois P. Heinz, Aug 04 2011
approved
editing
editing
approved
seq (a(n), n=1..100); # _Alois P. Heinz, _, Aug 04 2011
(PARI) A193262(n, c=0)={ n=2*prime(n); forprime(p=1, n/2, isprime(n-p) || next; isprime(p*(n-p)-2) & c++); c} \\ - _M. F. Hasler, _, Aug 06 2011
approved
editing