I'm writing a cryptography essay, and am wondering why you need a prime number for the Diffie-Hellman key exchange? Any help would be appreciated :)
This is a link to a previous post which quickly shows what the Diffie-Hellman key exchange is: Why/How does the Diffie-Hellman Key Exchange work?
I haven't done modular arithmetic for a while, but I'm sure it will be a simple answer if someone is familiar with it/done it recently!