from an early age he 'd been a superstar of mathematics , winning international competitions even before his teens , doing university maths when other boys his age were still finishing primary school , graduating from sydney university with an honours science degree at sixteen , then being invited to do a ph.d at princeton in the usa , which he 'd gained at the amazing age of twenty-one .