# man > OPENSSL-PRIME(1SSL)

[_OPENSSL-PRIME_(1SSL)](https://www.chedong.com/phpMan.php/man/OPENSSL-PRIME/1SSL/markdown)                            OpenSSL                           [_OPENSSL-PRIME_(1SSL)](https://www.chedong.com/phpMan.php/man/OPENSSL-PRIME/1SSL/markdown)

## NAME
       openssl-prime - compute prime numbers

## SYNOPSIS
       **openssl prime **[**-help**] [**-hex**] [**-generate**] [**-bits _**num_] [**-safe**] [**-provider _**name_] [**-provider-path**
       _path_] [**-propquery _**propq_] [**-checks _**num_] [_number_ ...]

## DESCRIPTION
       This command checks if the specified numbers are prime.

       If no numbers are given on the command line, the **-generate **flag should be used to generate
       primes according to the requirements specified by the rest of the flags.

## OPTIONS
### -help
           Display an option summary.

### -hex
           Generate hex output.

### -generate
           Generate a prime number.

### -bits _
           Generate a prime with _num_ bits.

### -safe
           When  used  with  **-generate**, generates a "safe" prime. If the number generated is _n_, then
           check that "(_n_-1)/2" is also prime.

### -provider _
### -provider-path _
### -propquery _
           See "Provider Options" in [**openssl**(1)](https://www.chedong.com/phpMan.php/man/openssl/1/markdown), [**provider**(7)](https://www.chedong.com/phpMan.php/man/provider/7/markdown), and [**property**(7)](https://www.chedong.com/phpMan.php/man/property/7/markdown).

### -checks _
           This parameter is ignored.

## COPYRIGHT
       Copyright 2017-2020 The OpenSSL Project Authors. All Rights Reserved.

       Licensed under the Apache License 2.0 (the "License").  You may not use this file  except  in
       compliance  with  the  License.   You  can  obtain  a  copy in the file LICENSE in the source
       distribution or at <<https://www.openssl.org/source/license.html>>.

3.0.13                                       2026-07-29                          [_OPENSSL-PRIME_(1SSL)](https://www.chedong.com/phpMan.php/man/OPENSSL-PRIME/1SSL/markdown)
