Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9091

Re: Reading from table and identifying whether the number is prime or not.

$
0
0

Can I point out that when Gerrit said

 

Even though you declare f and t in your loop with a value of 0, this will not actually reset the values every single iteration, it only sets it to 0 and 2 initially. B


He was given you essentially the same answer as Mohammed.


(Please also see my note below about declaring variables at the top).


Viewing all articles
Browse latest Browse all 9091

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>