for finding the number that is larger than 10^7,
why we are checking the divisibility of no by ony prime numbers only .
for(long long int i=0;primes[i]*primes[i]<=no;i++)
{
if(no%primes[i]==0)
{
return false;
}
}
,
Not able to understand the concept ?
please explain.