Write the javascript code to print the sum of prime numbers from 1 to 20 using loop
Answers
Answered by
0
Answer:
function isPrime(val){
for(var i=2; i < val; i++){
if(val % i === 0)
{ return false; } } return true; }
Similar questions