#include <stdio.h>
int main() {
int num1, num2, i, j;
char op;
do {
printf("\nInforme um numero: "); printf("\nInforme um numero: "); for (i = num1; i <= num2; i++) {
for (j = 2; j < i; j++) {
if (i % j == 0) {
break;
}
}
if (i == j) {
} else {
printf("\n%i - Nao primos!", i
); }
}
printf("\nDeseja calcular outra sequencia de numeros? "); } while (op == 's' || op == 'S');
return(0);
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGludCBudW0xLCBudW0yLCBpLCBqOwogICAgY2hhciBvcDsKICAgIGRvIHsKICAgICAgICBwcmludGYoIlxuSW5mb3JtZSB1bSBudW1lcm86ICIpOwogICAgICAgIHNjYW5mKCIlaSIsICZudW0xKTsKICAgICAgICBwcmludGYoIlxuSW5mb3JtZSB1bSBudW1lcm86ICIpOwogICAgICAgIHNjYW5mKCIlaSIsICZudW0yKTsKICAgICAgICBmb3IgKGkgPSBudW0xOyBpIDw9IG51bTI7IGkrKykgewogICAgICAgIAlmb3IgKGogPSAyOyBqIDwgaTsgaisrKSB7CiAgICAgICAgCQlpZiAoaSAlIGogPT0gMCkgewogICAgICAgIAkJCWJyZWFrOwogICAgICAgIAkJfQogICAgICAgIAl9CiAgICAgICAgICAgIGlmIChpID09IGopIHsKICAgICAgICAgICAgICAgIHByaW50ZigiXG4laSAtIFByaW1vcyEiLCBpKTsKICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIHByaW50ZigiXG4laSAtIE5hbyBwcmltb3MhIiwgaSk7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcHJpbnRmKCJcbkRlc2VqYSBjYWxjdWxhciBvdXRyYSBzZXF1ZW5jaWEgZGUgbnVtZXJvcz8gIik7CiAgICAgICAgc2NhbmYoIiVzIiwgJm9wKTsKICAgIH0gd2hpbGUgKG9wID09ICdzJyB8fCBvcCA9PSAnUycpOwogICAgcmV0dXJuKDApOwp9