fork download
  1. #include <stdio.h>
  2.  
  3. f(n){return--n?f(n)*~-f(n)+1:2;}
  4.  
  5. int main(void) {
  6. int n;
  7. for (n = 1; n < 6; n++) printf("%u\n", f(n));
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
2
3
7
43
1807