Exploring other collections (Range)

Defining isPrime function on its pure mathematical definition, this
isn’t the best implementation for efficiency