4-core partitions and class numbers