ASSIGNMENT
You are asked to write a function to compute the prime numbers up to a given value. The function is named sieve and it will take an integer value as parameter. The function should return a list that contains all prime numbers up to (and including, if appropriate) value, the numbers in the returned list must be in ascending order. def sieve(value):

For example:
sieve(10) [2, 3, 5, 7]

sieve(11) [2, 3, 5, 7, 11]

sieve(20) [2, 3, 5, 7, 11, 13, 17, 19]

sieve(100) [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67,
71, 73, 79, 83, 89, 97]


    Customer Area

    Make your order right away

    Confidentiality and privacy guaranteed

    satisfaction guaranteed