Posts by user11383 • 11 points
1 post
-
1
votes1
answer255
viewsQ: Vector mean of prime number indices
Well, this is the problem. I thought here and arrived at a code. However, both the sum and the k (which would be the prime number positions) are incorrect. Any idea why? #include <stdio.h>…