Assessment wanted for loop 3 skill test

You are on the right track here, but have another look at this part of the instructions:

For each number that isn’t a prime number, continue on to the next loop iteration. For each one that is a prime number, add it to the paragraph’s textContent along with some kind of separator.

So each prime number needs to be added on to the paragraph’s text content. Ideally you also need to use the continue keyword to just move onto the next iteration without writing anything to the paragraph, if the current number is not a prime number.

Also, isPrime() needs to be passed the current number to check whether it is prime or not, i.e. isPrime(i).