What do you do when you need to execute certain statements more than once? You put them in a loop. Loops are very powerful. Majority of coding questions need loops to work. You can't even input testcases without loops!
Here, we will use for loop and check if the given number n is prime or not. Note: A number is prime if it's divisible by itself and 1. Also, 1 is not prime.
Your task is to complete the provided function.