gen-prime mode bits qbits
This probably generates a prime number. Read the source for details if you are curious.