People (especially teachers) make maths hard. Take prime numbers. You don't need to know that many - the first 20 or so is all that you'd ever need, and probably only the first 5 or 10 would get you through most school exams and real life scenarios for the average person.
So, rather than just tell the kids to learn 10 numbers off by heart, what do teachers do? They teach the formula for working out every prime number from 1 to near infinity. Realistically, how many kids are going to memorise a complicated formula and process, especially at primary school level when prime numbers are taught? Why not just give the damn list of the first 5 prime numbers for them to learn off by heart. Then once they've learned 5 numbers, give them another list of the next 5 to learn. There's not a single kid (other than those with a disability) who can't learn 10 numbers by heart.
Once they learn them, they're able to simplify and solve fractions, algebra etc. If they forget them over time, it's easy enough to write them in the front of their exercise book each year as a reminder and help them remember for when it really matters in their exams. But, no, schools teach them how to work out prime numbers, so in an exam, they have to spend valuable time working through the formula (if they remember it) to create their own list of prime numbers! Crazy stuff!
Realistically, how many people need to know whether 1,179 is a prime number? 1%, 0.1%, 0.01%? So which teach the formula to the other 99%? For those who are in professions needing to know whether 1,179 is a prime number, they'd have "crutches" at their fingertips, such as calculators, computer programs, spreadsheets, apps, or whatever so even they don't need to know and don't need to calculate it by manual formula methods!