WEBSITE RETURNED, HOWEVER SUBMIT QUANTITY IS RESTRICTED PER DAY TO VERY LITTLE (UNDER JUDGE0 NEW POLICY, API PROVIDER). Therefore it is very much for you to pay attention TEST CAREFULLY CODE BEFORE SUBMIT.

Average prime numbers less than k

Threads: Enter an integer k, Calculate and print out the average of the prime numbers less than or equal to k.
Input: An integer k.
Output: A unique number is the average of the prime numbers less than or equal to k. Results rounded to 3 decimal.
For example:

input:
5
output:
3.333

You are not logged in? Log in to Submit Now!

4 Comments

Add a Comment