Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include<cstdio>
  2. int main() {
  3. int n, n1, d = 2;
  4. scanf ("%d", &n);
  5. scanf ("%d", &n1);
  6. while (n < n1){
  7. while (n > 1){
  8. while (n % d == 0){
  9. printf ("%d ", d);
  10. n = n / d;
  11. }
  12. d += 1;
  13. }
  14. n += 1;
  15. }
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement