Abstract The zeros of Riemann zeta function is intimately connected to the distribution of prime numbers. G. H. Hardy showed that the Riemann zeta function has infinitely many zeros on the critical line. We shall discuss this result in a more general set up