title: While coding for a solution to a question of Primality Test, my code was not being processed in the vs code
body: <p>The Question:
  Alice and Bob are meeting after a long time. As usual they love to play some math games. This times Alice takes the call and decides the game. The game is very simple, Alice says out an integer and Bob has to say whether the number is prime or not. Bob as usual knows the logic but since Alice doesn't give Bob much time to think, so Bob decides to write a computer program.</p>
  <p>Help Bob accomplish this task by writing a computer program which will calculate whether the number is prime or not .</p>
  <p>My code:
  <img src="https://i.stack.imgur.com/B7QiZ.png" alt="enter image description here" /></p>
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  bool isPrime (int n)
   {
       if (n==1)
       {
           return false;
       }
       for (int i=2;i*i&lt;=n;i++)
       {
           if (n % i == 0)
           {
               return false;
           }
       }  
       return true;
   }
   int main ()
   {
       int t,n;
       cin&gt;&gt;t;
       while (t--)
       {
           cin&gt;&gt;n;
           if (isPrime(n))
           {
           cout&lt;&lt;&quot;yes&quot;&lt;&lt;endl;
           }
           else
           {
               cout&lt;&lt;&quot;no&quot;&lt;&lt;endl;
           }
       }
      
   }
  </code></pre>