Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # include <stdio.h>
- int main()
- {
- int num;
- int i;
- int pr;
- int aor;
- for (aor = 1; aor <= 1000; aor++)
- {
- for (i = 1; i <= aor; i++)
- {
- pr = 0;
- if (aor % i == 0)
- {
- pr++;
- }
- }
- if (pr == 2)
- {
- printf("%d\n", aor);
- }
- }
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement