ARTICLEViews: 7Share  Posted by - Anonymous

how to check number is prime number or not

here is the solution to find a number is prime or not


//javascript

  function isPrime(num){

    if(num <= 1) return false;

    if(num <= 3 ) return true;

    if(num%2 === 0 || num%3 === 0) return false;

    return true;

  }



You can now find Prime numbers from 1 to 100 in matter of secs!! The link to find prime numbers from 100 to 200 is ...

Quick tip to see if a number is prime

Prime Numbers - Magic Trick!! - Part 1 | Fun Math | Don&#39;t Memorise

Finding Prime Numbers

How to Tell if a Number is a Prime Number



Views -