A prime number is a natural number that is greater than 1 and cannot be formed by multiplying two smaller natural numbers.
Given a number num, we have to check whether num is a prime number or not.
Example:
Input:
num = 83
Output:
83 is a Prime Number
Program to check whether a number is prime or not in Kotlin
Output
need an explanation for this answer? contact us directly to get an explanation for this answer