what do you have already?

* calculating the prime numbers?

* totalling those numbers?

* counting those numbers?

* dividing the total by the number?

* calculating the prime numbers?

* totalling those numbers?

* counting those numbers?

* dividing the total by the number?