OFFSET
1,2
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
FORMULA
A151763(a(n)) = 0.
PROG
(PARI) { n=0; for (m=1, 10^9, if (!isprime(m) || m==2, write("b065090.txt", n++, " ", m); if (n==1000, return)) ) } \\ Harry J. Smith, Oct 06 2009
(Haskell)
import Data.List (elemIndices)
a065090 n = a065090_list !! (n-1)
a065090_list = map (+ 1) $ elemIndices 0 a151763_list
-- Reinhard Zumkeller, Oct 06 2011
(Python)
from sympy import composite
def A065090(n): return composite(n-2) if n>2 else n # Chai Wah Wu, Jul 13 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Labos Elemer, Nov 12 2001
STATUS
approved