Posts by Patric Enderson • 1 point
1 post
-
-1
votes1
answer117
viewsQ: Checking if a number is prime
I want to run a 1 to 5 and then I want to know if any of the numbers of the for is prime. for(j = 1 ; j<= 10; j++){ //Percorres os numeros a serem testados for(i = 1;i <= j; i++){ // Listo…