Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

numeros primos js

const isPrime = (num) => {
  for (let i = 2; i < num; i++)
    if (num % i === 0) {
      return false;
    }
  return num > 1;
};
Comment

PREVIOUS NEXT
Code Example
Javascript :: jquery get all checked checkboxes 
Javascript :: javascript clear style inline property 
Javascript :: align left text in reactstrap 
Javascript :: javasctipt unix timestamp from date 
Javascript :: separate digits in javascript 
Javascript :: window loaded vanilla javascript 
Javascript :: javascript change web page title 
Javascript :: clz32 
Javascript :: javascript add required attribute to input 
Javascript :: onload javascript function call 
Javascript :: express get full url 
Javascript :: NullInjectorError: R3InjectorError(DashboardModule)[DatabaseService - DatabaseService - HttpClient 
Javascript :: jquery avoid enter submit 
Javascript :: set autofocus javascript 
Javascript :: strip html tags javascript 
Javascript :: get child element by class javascript 
Javascript :: gitignore for angular 
Javascript :: how to clean modal on js in event hide 
Javascript :: apply back button to a react component 
Javascript :: javascript get first 10 characters of string 
Javascript :: d3.js clear svg 
Javascript :: input in node js 
Javascript :: regex for time in hh:mm:ss 
Javascript :: javascript push item to beginning of array 
Javascript :: javascript search in array of strings 
Javascript :: how to create a screen recorder using javascript only 
Javascript :: ScrollController not attached to any scroll views 
Javascript :: tailwind install nextjs 
Javascript :: normalize css cdn 
Javascript :: console load jquery 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =