[go: up one dir, main page]

login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A065090 Natural numbers which are not odd primes: composites plus 1 and 2. 19
1, 2, 4, 6, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 22, 24, 25, 26, 27, 28, 30, 32, 33, 34, 35, 36, 38, 39, 40, 42, 44, 45, 46, 48, 49, 50, 51, 52, 54, 55, 56, 57, 58, 60, 62, 63, 64, 65, 66, 68, 69, 70, 72, 74, 75, 76, 77, 78, 80, 81, 82, 84, 85, 86, 87, 88, 90, 91, 92, 93, 94 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
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
Complement of A065091.
Sequence in context: A189466 A085492 A338924 * A371167 A324560 A355822
KEYWORD
nonn,easy
AUTHOR
Labos Elemer, Nov 12 2001
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 30 00:57 EDT 2024. Contains 375520 sequences. (Running on oeis4.)