# openssl prime

OpenSSL command to compute prime numbers. More information: https://www.openssl.org/docs/manmaster/man1/openssl-prime.html.

- Generate a 2048bit prime number and display it in hexadecimal:
`openssl prime -generate -bits 2048 -hex`

- Check if a given number is prime:
`openssl prime {{number}}`

This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.