Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool recu(int num) {
- if (no==2) printf("%d ", no);
- if (no < 2|| num<2) { return true; }
- if (num == 2) { printf("%d ", no); no--; num = no; recu(num-1); }
- if (no%num != 0)recu(num - 1);
- else {
- no--; num = no; recu(num - 1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement