Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main() {
- int a=3, b, i=0;
- while (i != 25)
- {
- if (((a%2) != 0) && ((a%3) != 0) && ((a%5) != 0) && ((a%7) != 0) &&
- (((a+2)%2) != 0) && (((a+2)%3) != 0) && (((a+2)%5) != 0) && (((a+2)%7) != 0)
- || (a == 3) || (a == 5) || (a == 7) || ((a+2) == 3) || ((a+2) == 5) || ((a+2) == 7))
- {
- printf("%d \t%d\n",a, (a+2));
- i++;
- }
- a++;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement