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!)
A326581 Odd integers which are prime or square. 1
1, 3, 5, 7, 9, 11, 13, 17, 19, 23, 25, 29, 31, 37, 41, 43, 47, 49, 53, 59, 61, 67, 71, 73, 79, 81, 83, 89, 97, 101, 103, 107, 109, 113, 121, 127, 131, 137, 139, 149, 151, 157, 163, 167, 169, 173, 179, 181, 191, 193, 197, 199, 211, 223, 225, 227, 229, 233, 239, 241 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
Union of A065091 and A016754.
MAPLE
s := n -> if irem(n, 2) = 1 and (isprime(n) or issqr(n)) then n else NULL fi:
seq(s(n), n=0..241);
MATHEMATICA
Select[Range[1, 241, 2], Or[IntegerQ@ Sqrt@ #, PrimeQ@ #] &] (* Michael De Vlieger, Jul 15 2019 *)
CROSSREFS
Sequence in context: A238266 A308838 A080429 * A050150 A062090 A358975
KEYWORD
nonn
AUTHOR
Peter Luschny, Jul 15 2019
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 May 9 12:21 EDT 2024. Contains 372350 sequences. (Running on oeis4.)