Group cohomology of alternating groups