title: Finding a number that is divisible by all numbers from 1 through 10 evenly
body: <p>I want to find a number that is divisible by all numbers between 1 and 10. My code sample prints out all the numbers that are divisible.  However how would I go about approaching the problem to get just the number that is divisible by ALL numbers from 1 to 10, not just a few:</p>
  
  <pre><code>public class prob_5 {
  public static void main(String args[]) {
  
      int count = 0;
  
      for (int x = 1; x &lt;= 3000; x++) {
          for (int i = 1; i &lt;= 10; i++) {
  
              if (x % i == 0) {
  
                  System.out.println(x);
              }
  
          }
      }
  
  }
  </code></pre>
  
  <p>}</p>