fork download
  1. #include <iostream>
  2. #include <limits>
  3.  
  4. int main() {
  5. for (unsigned i = 1; i <= std::numeric_limits<unsigned>::max(); ++i) {
  6. for (int j = 1; j <= 20; ++j) {
  7. if ((i % j) != 0) goto skip;
  8. }
  9. std::cout << i << std::endl;
  10. break;
  11. skip: ;
  12. }
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 8.54s 2724KB
stdin
Standard input is empty
stdout
232792560