Do you need to be good at maths to become a decent programmer? I know the programming language is huge, there are many areas,, but just for the most part/in general? What areas in c++ should I avoid?

Im wondering if im wasting my time, because im quite horrible at maths. Im reading C++ Without fear, I find myself skipping a few things because I dont get prime numbers for example. Otherwise things go smoothly, I have learned variables, if / while / else, a little about loops, functions and such.