.isPrime()

Description

isPrime returns a boolean of whether the input number is a prime number or not.

Parameters

isPrime takes no parameters

Usage On Numbers

num = 16

log num.isPrime()
// false

Last updated