title: For loop with variable step size - C++
body: <p>I want to use a for loop with variable step size, in particular I want that the <code>i</code> variable in <code>for</code> loop is equal to:</p>
  
  <ol>
  <li>All numbers except the ones which can be divided by <code>3</code> so: </li>
  </ol>
  
  <blockquote>
    <p>i = 1-2-4-5-7-8-10-11-13-14-16-17...</p>
  </blockquote>
  
  <ol start="2">
  <li>All numbers except the ones which can be divided by <code>3</code> and <code>2</code> so:</li>
  </ol>
  
  <blockquote>
    <p>i = 1-5-7-11-13-17...</p>
  </blockquote>
  
  <p>The base code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  int main()
  {
      int N = 100;
      for ( int i=0; i&lt;N; i++) { //&lt;-----
          //instructions
      }
      return 0;
  }
  </code></pre>
  
  <p>Is it possible with <code>for</code> loop?</p>