•  
      tasks #44543 Python program to check whether a no. is prime or not
    #44543
    Mohini Singh (mohini)
    2022-08-09 02:39
    2022-08-09 02:39
    Details
    Python program to check whether a no. is prime or not
    We check if num is exactly divisible by any no. from 2 to num-1. if we find a factor in that range, the no. is not prime, so we set flag to True and break out of the loop. Then, we check if flag is True or False. if it is True, num is not a prime number.
    5 - Medium
    State of Progress
    2022-05-02
    Empty
    2022-05-04
    Mohini Singh (mohini)
    Rakesh Kumar Verma (rakesh.verma)
    2022-05-03
    Closed
    Attachments
    References
    References list is empty