Tools &rarr Options...
and set the Kernel mode to shared.
You'll want to make sure the number theory package is loaded. Do this by typing
with(numtheory);
In either case, you'll need to copy them to My computer &rarr local disk c &rarr temp.
After you define p and &alpha , you can check that p is prime by typing
isprime(p);and verify that &alpha is a primitive root mod p using
order(alpha,p);
The file dhbb.mws has a function dhbb which solves the Computational Diffie-Hellman problem for this value of p and &alpha .
23869, 42956
4676, 29767
42383, 44483
What does it say? (You may want to read Proposition 4 on page 214.)
Maple has a few functions which will help you with this. You can learn about them by typing
?numtheory;You might be particularly interested in isprime, primroot and order.