>>3
primes.
if youre in number theory, or any related proof heavy class, i'd suggest just trying to learn all of the theorems for the sections youve done, or at least the most often used ones.
get an actual understanding of why the theorems work. you'll remember a lot more easily, and be more ready to apply them.
as far as how to actually doing the proofs? a lot of it is just knowing which tricks youve been using a lot, and seeing whihc ones are useful. its suprisingly hard to teach someone how to go about proving things, which is why your books and professors arent going to be as helpful as youd like.
if you can start understanding the 'why' or 'how' (which come with familiarity more than anything else) of the proof, its much easier to do. or think of what sort of information would get you the answer you want, and then think of any theorems that would get you that information.
i'll end this lengthy exposition by commenting on your original problem here in the thread, in a lengthy way:
look at the problem:
theres stuff in the form 6q + r, you should almost always be thinking about modular arithmetic or division algorithms when you see that. it mentions a theorem, and theres primes.
always try to notice if something is a multiple of other numbers in the problem if its relavent. 6 = 2*3
understand what a prime is, useful here is that no prime is a multiple of anything lower than it, and remember what being a multiple of something means in modular arithmetic.
dont know if any of that helped, but im bored and thought id say something.