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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mansi01
    New Member
    • Mar 2017
    • 1

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

    I need to know the conditions to write a
    if-else statement for a prime number
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Where are you stuck? The how-to-code or what s a prime number?

    Comment

    Working...