Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

numeros primos js

const isPrime = (num) => {
  for (let i = 2; i < num; i++)
    if (num % i === 0) {
      return false;
    }
  return num > 1;
};
Source by backefront.com.br #
 
PREVIOUS NEXT
Tagged: #numeros #primos #js
ADD COMMENT
Topic
Name
9+7 =