By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,384 Members | 714 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,384 IT Pros & Developers. It's quick & easy.

Function that takes int argument and return 0 if the given number is prime else retur

P: 1
I need to know the conditions to write a
if-else statement for a prime number
Mar 22 '17 #1
Share this Question
Share on Google+
1 Reply


weaknessforcats
Expert Mod 5K+
P: 9,197
Where are you stuck? The how-to-code or what s a prime number?
Mar 22 '17 #2

Post your reply

Sign in to post your reply or Sign up for a free account.