He worked as a laborer for 10 years and was unable to attend high school.[10] After the Cultural Revolution ended, Zhang entered Peking University in 1978 as an undergraduate student and received his B.S. degree in mathematics in 1982. He became a graduate student of Professor Pan Chengbiao, a number theorist at Peking University, and obtained his M.S. degree in mathematics in 1984.[1]