We present a new algorithm which uses a cohomological approach to determine the groups of order pn, where p is a prime. We develop two methods to enumerate p-groups using the Cauchy-Frobenius Lemma. As an application we show that there are 10 494213 groups of order 29.
1991 Mathematics subject classification (Amer. Math. Soc.): primary 20D15.