A158942 Nonsquares coprime to 10.
3, 7, 11, 13, 17, 19, 21, 23, 27, 29, 31, 33, 37, 39, 41, 43, 47, 51, 53, 57, 59, 61, 63, 67, 69, 71, 73, 77, 79, 83, 87, 89, 91, 93, 97, 99, 101, 103, 107, 109, 111, 113, 117, 119, 123, 127, 129, 131, 133, 137, 139, 141, 143, 147, 149, 151, 153, 157, 159, 161, 163
Offset: 1
Links
- Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
Crossrefs
Programs
-
Mathematica
Select[Range@ 163, ! IntegerQ@ Sqrt@ # && CoprimeQ[#, 10] &] (* Michael De Vlieger, Dec 11 2015 *)
-
PARI
isok(n) = (n % 2) && (n % 5) && (isprime(n) || (numdiv(n) % 2 == 0)); \\ Michel Marcus, Aug 27 2013
-
PARI
is(n)=gcd(n,10)==1 && !issquare(n) \\ Charles R Greathouse IV, Sep 05 2013
Extensions
New name from Charles R Greathouse IV, Sep 05 2013
Comments