Checking Prime Number Existence

# Introduction In this lab, we are checking whether a given number is prime or not by running a loop from 2 to the number itself and checking if the number is divisible by any number within that range, and then printing whether it is a prime number or not.

|
60 : 00

Click the virtual machine below to start practicing