Two pupils from a Nelson primary school have achieved a remarkable national result after finishing first and second in a times tables competition involving more than 370,000 children across England.