Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<cstdio>
- int main() {
- int n, n1, d = 2;
- scanf ("%d", &n);
- scanf ("%d", &n1);
- while (n < n1){
- while (n > 1){
- while (n % d == 0){
- printf ("%d ", d);
- n = n / d;
- }
- d += 1;
- }
- n += 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement