login
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
OFFSET
1,2
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
KEYWORD
nonn
AUTHOR
Peter Luschny, Jul 15 2019
STATUS
approved