fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <cstdlib>
  4. using namespace std;
  5. void myth(int x){
  6. for(int f=2; f<=x; f++){
  7. if(x%f == 0){
  8. cout << f << endl;
  9. myth(x/f);
  10. return;
  11. }
  12. }
  13. }
  14. int main(int argc, char* argv[]){
  15. int n = atoi(argv[1]);
  16. myth(n);
  17. }
Runtime error #stdin #stdout 0s 15240KB
stdin
./a.out 63
stdout

Standard output is empty