ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 23 Dec 2018 17:32:36 -0600Randomly generate a safe prime of given lengthhttp://ask.sagemath.org/question/44765/randomly-generate-a-safe-prime-of-given-length/ A prime p is said to be safe prime if (p-1)/2 is also a prime. Safe primes are heavily used in cryptography. In order to generate a random prime of 512 bits, I use
random_prime(2^512-1, false, 2^511)
How to randomly generate a safe prime of given length?pantherSun, 23 Dec 2018 17:32:36 -0600http://ask.sagemath.org/question/44765/