Search for question
Question

(a) Generate a random sample of size 100 from numbers between 1 and 1000 with

replacement. Store the result in a.

(b) Find the sum of all elements of a.

(c) Find all prime numbers in a.