The children were encouraged to take in coins and loose change donated by family to make a snake of coins around the playground.
As an added attraction the class that created the longest snake received a treat.
Money raised by the snakes of coins is going to the school's playground equipment fund.
Staff member, Tammy Griffiths, said that the trails of coins sparked memories in the community.
"We had lots of people saying that they remembered when Ellesmere Primary created a mile of pennies to help fund the building of the school's swimming pool, at least 50 years ago," she said.
"They said it must have been pre-decimalisation as it was the old pennies that were used."
"That then got us looking at how the children of half a century ago raised money for the pool that our pupils still use today and how now they are raising money for the playground equipment."
Among those who remembers the old mile of pennies were Sue McBride, another member of the staffing team at Ellesmere, and the nanny of pupil Emily Wilsmer, Linzi Wood.
"We all remembered taking the pennies in and measuring out a mile of coins," Linzi said.