I am trying to find a function or expression which finds reads the resulting value and if it is a whole number. then ends program : <p>this is my program I hope you understand what I am trying to do. </p>



<pre class="lang-js prettyprint-override"><code>   if (primeNum = int)
                        {
                            Console.WriteLine(" the number entered is not prime ");
                        }
</code></pre>
