statements to print out the sum of all prime numbers in array a (the primes start from 2).
Notes:
- Do not edit given statements in the main function.
- You can create new functions if you see it is necessary.
Sample input and output:
Input:
How many elements do you want to enter into the integer array? [1..100] 6
2
5
4
1
6
3
After processing: s = 2+5+3 = 10
Output for marking:
OUTPUT:
10
Question 4:
Zoom
(3 marks)
100%
Close