12.1 Problem

A prime number is an integer greater than 1 that is divisible only by 1 and itself. Prime numbers found practical applications, e.g. in cryptography.

In this task your job is to write a function that returns all prime numbers up to a certain extent. You may use any computational method from the Wikipedia’s page.



CC BY-NC-SA 4.0 Bartlomiej Lukaszuk