Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #include <stdio.h>
  2.  
  3. #define UPPER_TEST 1000000000
  4.  
  5. int DivisorTest (int dividend) {
  6.     for (int divisor = 1; divisor <=20; divisor++) {
  7.         if ((dividend % divisor) > 0) {
  8.             return 0;
  9.         }
  10.     }
  11.     printf("%i\n", dividend);
  12.     return 1;
  13. }
  14.  
  15. int main (int argc, const char * argv[]) {
  16.     printf("Starting Test:\n");
  17.     for (int test = 1; test <= UPPER_TEST; test++) {
  18.         DivisorTest(test);     
  19.     }
  20.     return 0;
  21. }