Primary pupils crunch numbers during annual maths challenge