A Whitehouse Primary School pupil has achieved an outstanding result in an Ireland-wide mathematics competition, finishing second out of 14,695 students.