```Python
def isPrime(num):
    if (num <= 1):
        return False

    i = 2

    while i < num:
        if num % i == 0:
            return False
        i += 1

    return True
```
```Python
def isPrime(num):
    if (num <= 1):
        return False

    i = 2

    while i < num:
        if num % i == 0:
            return False
        i += 1

    return True
```