WLJS LogoWLJS Notebook

CompositeQ

CompositeQ[n] yields True if n is a composite number, and yields False otherwise.

Examples

Check if a number is composite:

CompositeQ[15]
(* True *)

CompositeQ[7]
(* False *)

Please visit the official Wolfram Language Reference for more details.

On this page