simplify equation finding `R_all` for case p=2
Merge pull request #2 from neizod/master

Simplify equation for finding `R_all` in case prime == 2.