diff --git a/README.md b/README.md index 15d49d34e..39f165be1 100644 --- a/README.md +++ b/README.md @@ -1219,7 +1219,7 @@ const isEven = num => num % 2 === 0; ### isPrime -Checks if the provided intiger is prime number. +Checks if the provided integer is a prime number. Returns `false` if the provided number has positive divisors other than 1 and itself or if the number itself is less than 2. diff --git a/docs/index.html b/docs/index.html index 62226119f..7648b07e7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -763,7 +763,7 @@ Returns true if the number is even, false if the numbe // isEven(3) -> false

isPrime

-

Checks if the provided intiger is prime number.

+

Checks if the provided integer is a prime number.

Returns false if the provided number has positive divisors other than 1 and itself or if the number itself is less than 2.

const isPrime = num =>
   for (var i = 2; i < num; i++) if (num % i == 0) return false;
diff --git a/snippets/isPrime.md b/snippets/isPrime.md
index a03e070f9..b372f057f 100644
--- a/snippets/isPrime.md
+++ b/snippets/isPrime.md
@@ -1,6 +1,6 @@
 ### isPrime
 
-Checks if the provided intiger is prime number.
+Checks if the provided integer is a prime number.
 
 Returns `false` if the provided number has positive divisors other than 1 and itself or if the number itself is less than 2.