Javascript + return PrimeNumbers
问题 I am trying to write a function that returns the PrimeNumber. for testing purposes i am just doing a console.log for stages of this function, to try and understand it better. so this line(line:18) in my total function will just return i; as opposed to do a console.log So Basically, 30 will be passed to the function and the function will return every prime number <=30. It is based on this from wiki: This routine consists of dividing n by each integer m that is greater than 1 and less than or