SHARE
TWEET

Untitled

a guest Jan 18th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdlib.h>
  2. #include <math.h>
  3.  
  4. int main() {
  5.   unsigned long long int p = 23;
  6.   unsigned long long int g = 5;
  7.   unsigned long long int a = 6;
  8.   unsigned long long int b = 15;
  9.   unsigned long long int A = std::fmod(pow(g, a), p);
  10.   unsigned long long int B = std::fmod(pow(g, b), p);
  11.   unsigned long long int ba = std::fmod(pow(B, a), p);
  12.   unsigned long long int ab = std::fmod(pow(A, b), p);
  13.   return 1;
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top