title: Finding the Prime Number using a WHILE LOOP (not a for loop)in php
body: <p>So I am just starting to learn a PHP in college. I have been given a simple task of finding the prime numbers of 101 in PHP but using a while loop. I cant figure it out.It ahs to use a while loop rather a for loop, teacher specifications. Many thanks.
  This is my pathetic code,(&amp; this only prints out the numbers from 1 to 101, im ever new to it)</p>
  
  <pre><code>&lt;?php
  $x = 1; 
  $maxNumber=101;
  while($x &lt;= $maxNumber) {
      echo "The number is: $x &lt;br&gt;";
      $x++;
  } 
  ?&gt;  
  </code></pre>