THE EXERCISE OF THE GUYS GUYS HAS BEEN MOVED TO THE MENU "EXERCISE OF Teacher"

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!

2 Comments

Add a Comment