login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A105661 a(n)=1 if n is a prime, 2 if n is an even semiprime, otherwise 0. 1
0, 1, 1, 2, 1, 2, 1, 0, 0, 2, 1, 0, 1, 2, 0, 0, 1, 0, 1, 0, 0, 2, 1, 0, 0, 2, 0, 0, 1, 0, 1, 0, 0, 2, 0, 0, 1, 2, 0, 0, 1, 0, 1, 0, 0, 2, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 2, 1, 0, 1, 2, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 2, 0, 0, 0, 0, 1, 0, 0, 2, 1, 0, 0, 2, 0, 0, 1, 0, 0, 0, 0, 2, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0 (list; graph; refs; listen; history; internal format)
OFFSET

1,4

EXAMPLE

a(3)=1 because n=3 is a prime;

a(4)=2 because n=4=2*2 is an even semiprime;

a(8)=0 because n=8 is neither prime nor semiprime.

a(15)=0 because n=15=3*5 is an odd semiprime.

PROG

(PARI) for(n=1, 105, if((n%2==0)&&(bigomega(n)==2), r=2, r=isprime(n)); print1(r, ", "))

CROSSREFS

Cf. A001222.

Sequence in context: A143947 A073781 A048622 * A082451 A121362 A091704

Adjacent sequences:  A105658 A105659 A105660 * A105662 A105663 A105664

KEYWORD

easy,nonn

AUTHOR

Giovanni Teofilatto (g.teofilatto(AT)tiscalinet.it), May 04 2005

EXTENSIONS

Corrected and extended by Rick L. Shepherd (rshepherd2(AT)hotmail.com), May 17 2005

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 09:27 EST 2012. Contains 205904 sequences.