title: In C# - How to convert boolean values 'true' and 'false to "PRIME" and "NOT PRIME" respectively
body: <p>This is my code so far, but I'm not sure how I can make the result textbox show only "PRIME" as the message to the user if the condition is "TRUE" (instead of showing just "TRUE") or show "NOT PRIME" as the message to the user if the result is not a prime number i.e. FALSE instead of showing "FALSE" . This is a scientific calculator that calculates prime numbers btw.  </p>
  
  <p>This is my first post here and I am a beginner so any help in the right direction would be appreciated. Cheers.</p>
  
  <pre><code>protected void calculatePrimeNumberButton_Click(object sender, EventArgs e)
  {
      int num = int.Parse(numberPrimeTextBox.Text);
      int divider = 2;
      int maxDivider = (int)Math.Sqrt(num);
      bool prime = true;
  
      while (prime &amp;&amp; (divider &lt;= maxDivider))
      {
          if (num % divider == 0)
          {
              prime = false;
          }
  
          divider++;
      }
  
      resultPrimeNumberTextBox.Text = prime.ToString();        
  }
  </code></pre>