Wow! This brings back memories from high school! I remember sitting down with my teacher, and working out these very passages. Here they are after 22 years...
The R.H. notes are grouped with the left hand. This only makes sense when you're practicing slowly. Practice the runs ff at first, without the crescendos, with equal and firm intensity, and curved fingers. Don't worry that some groups are 3 and some are 4 within a passage, because when you play them in tempo, it all gels together nicely. The only landmark you have to remember when playing the passages in tempo are which note in the R.H. lands with the downbeat of the L.H. That way you can "pace" yourself so that one hand doesn't run off without the other. Let me know if you have any questions. This is one of my favorite Preludes so you better learn it very well!

I've given you a start. Good Luck!