OFFSET
1,1
EXAMPLE
a(4) = 53 because there are exactly four sets of consecutive primes which have means of 53: {53}, {47,53,59}, {41,...,67} and {31,...,73},
PROG
(PARI) {a(n)= m=2; starting_index=1; k=starting_index; sum_of_primes=0; prime_count=0; sets=0; until( (prime(starting_index)>m) && (sets==n), if( (prime(starting_index)>m) || (sets>n), m=nextprime(m+1); sets=0; starting_index=1; k=starting_index); sum_of_primes=sum_of_primes+prime(k); prime_count++; mean=sum_of_primes/prime_count; if(mean<m, k++, sum_of_primes=0; prime_count=0; starting_index++; k=starting_index; if(mean==m, sets++))); return(m)} \\ Rick L. Shepherd, Jun 14 2004
CROSSREFS
KEYWORD
more,nonn
AUTHOR
Naohiro Nomoto, May 11 2003
EXTENSIONS
Edited by Don Reble, Jun 17 2003
STATUS
approved