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