#include <stdio.h>
int verifica_primos(int n){
for(int i = 2; i < n; i++){
if(n % i == 0){
return 1;
}
} return 0;
}
int main(){
int i, j;
scanf("%d %d", &i, &j);
for(int k = i; k < j; k++){
if(verifica_primos(k) == 0){
printf("%d\n", k);
}
}
printf("\n");
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: