December 23, 2018
Average primes array
Threads: For an array of n integers. On average in the array primes.
Input: The first line is an integer n. The second line 2 n is an integer array, of numbers separated by spaces.
Output: Some are medium primes. Results rounded to 2 decimal. If no prime range, in ra “NOT FOUND”
For example:
input: 3 4 3 2 output: 2.50
You are not logged in? Log in to Submit Now!