A new report has found that 84 of Scotland’s primary schools ensure that almost ever primary seven pupil is up to standard in reading, writing, numeracy, listening and talking.
The Sunday Times report used data submitted by schools in each of the four categories to come up with a mark out of a maximum of 400.
Read more: Prestigious international school that claimed steady pupil numbers could shut over falling roll
A total of 1,197 primary schools provided data for the annual Achievement in Curriculum for Excellence Levels publications, with the remaining 729 on the government database not participating, either because no children were up to standard, the school roll was too small or the data was not collected centrally.
Schools with a higher proportion of deprived pupils were weighted to rise up the league table to recognise their achievement in delivering a good education despite the challenges of poverty.
The schools were then placed in a league table according to how well they were performing.
In the area covered by East Lothian Council a total of 10 primaries received at least 350 points - with two earning full marks.
Here are all 10.
Make sure you don't miss a moment of breaking news from across Scotland by signing up to our free newsletter here.

1. Gullane Primary School
Gullane Primary School is one of two primaries in East Lothian to score a perfect 400 points across the four core areas of education. Both schools have fewer than 10 per cent of pupils from a 'very deprived' background. It ranks as the 50th best performing primary school in Scotland. | Google Maps

2. Stoneyhill Primary School
Locted in the East Lothian town of Musselburgh, Stoneyhill Primary School also scores the maximum 400 out of 400 points. The school's 183 pupils are taught by 11 teachers. | Google Maps

3. St Martin's RC Primary School
St Martin's RC Primary School, in Tranent, is the only East Lothian primary to score a near-perfect 390 points in the report - dropping 10 marks in the numeracy category. The school has an average class size of 19.7 pupils and is notable for being the only school on this list with more than 10 per cent of pupils (actually between 20-30 per cent) from 'very deprived' backgrounds. | Google Maps

4. Campie Primary School
Musselburgh's Campie Primary School is one of two to total 380 points in the report - missing out 10 points in each of the numeracy and reading categories. The school has a pupil attendance rate of 93 per cent. | Google Maps

