Preparing search index...
The search index is not available
prototyped.js - v3.0.5
prototyped.js - v3.0.5
math
isPrime
Function isPrime
is
Prime
(
num
:
number
)
:
boolean
Checks if the provided integer is a prime number
Example
isPrime
(
11
);
// true
Parameters
num:
number
Returns
boolean
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
prototyped.js -
v3.0.5
array
boolean
date
func
globals
math
number
object
string
average
degrees
To
Rads
factorial
fibonacci
gcd
is
Divisible
is
Even
is
Prime
lcm
primes
rads
To
Degrees
Generated using
TypeDoc
Checks if the provided integer is a prime number
Example