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
textContentalong 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.
isPrime() needs to be passed the current number to check whether it is prime or not, i.e.