//noprotect not working,code runs fine else where

//noprotect not working,code runs fine else where
0

#1

Hi,

While trying to solve -https://www.freecodecamp.org/challenges/sum-all-primes , i came across an error -

potential infinite loop, i searched and added //noprotect above error line as it is working fine on jsfiddle - https://jsfiddle.net/jinisner/pwa5hpdm/

Can you please guide where i might be wrong …I have tried to find the mistake for some time now …

Regards


#2

You will have to return res instead of logging it to the console.

The potential infinite loop warning only means that your code potentially has an infinite loop in it, so it does not necessarily mean your code is wrong.


#3

@BenGitter - thank you …