This is a difficult question. Math demands two key talents. One of them is speed. You must be able to sprint in order to dash ahead of your peers and to gain encouragement. No one respects a slow mathematician. The second is mathematical insight. Without it one is dependent on memory and that is problematic in terms of creativity.
Everyone else keys in on using memory to support mathematical tools. That is why we memorize the times table and there is really no other way.
After all that you must still do ten thousand hours of practice to become good or even survive. Photographic memories get a sometime pass but lose on discipline which often blocks furter advancement.