→
Divisible
/
Reference of Built-in Symbols
/
Integer Functions
/
Division-Related Functions
/
CompositeQ
/
CompositeQ
WMA link
CompositeQ
[
n
]
returns
True
if
n
is a composite number
A composite number is a positive number that is the product of two integers other than 1.
For negative integer
n
,
CompositeQ[
n
]
is effectively equivalent to
CompositeQ[-
n
]
.
Table[CompositeQ[n], {n, 0, 10}]
→
Divisible