Computer Science, asked by sukanyaverma3705, 6 months ago

Write the javascript code to print the sum of prime numbers from 1 to 20 using loop

Answers

Answered by sinhaamit95
0

Answer:

function isPrime(val){

for(var i=2; i < val; i++){

if(val % i === 0)

{ return false; } } return true; }

Similar questions