Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int a = 1; a < p; a++) {
- if(a * dif % n == 0) {
- for(int b = 0; b < p; b++) {
- if((a * x + b % p) % n == 0 && (a * y + b % p) % n == 0) {
- matches++;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement