{
    "mode": "man",
    "parameter": "OPENSSL-PRIME",
    "section": "1SSL",
    "url": "https://www.chedong.com/phpMan.php/man/OPENSSL-PRIME/1SSL/json",
    "generated": "2026-08-13T23:12:09Z",
    "synopsis": "openssl prime [-help] [-hex] [-generate] [-bits num] [-safe] [-provider name] [-provider-path\npath] [-propquery propq] [-checks num] [number ...]",
    "sections": {
        "NAME": {
            "content": "openssl-prime - compute prime numbers\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "openssl prime [-help] [-hex] [-generate] [-bits num] [-safe] [-provider name] [-provider-path\npath] [-propquery propq] [-checks num] [number ...]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This command checks if the specified numbers are prime.\n\nIf no numbers are given on the command line, the -generate flag should be used to generate\nprimes according to the requirements specified by the rest of the flags.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-help",
                    "content": "Display an option summary.\n"
                },
                {
                    "name": "-hex",
                    "content": "Generate hex output.\n"
                },
                {
                    "name": "-generate",
                    "content": "Generate a prime number.\n"
                },
                {
                    "name": "-bits _",
                    "content": "Generate a prime with num bits.\n"
                },
                {
                    "name": "-safe",
                    "content": "When  used  with  -generate, generates a \"safe\" prime. If the number generated is n, then\ncheck that \"(n-1)/2\" is also prime.\n"
                },
                {
                    "name": "-provider _",
                    "content": ""
                },
                {
                    "name": "-provider-path _",
                    "content": ""
                },
                {
                    "name": "-propquery _",
                    "content": "See \"Provider Options\" in openssl(1), provider(7), and property(7).\n"
                },
                {
                    "name": "-checks _",
                    "content": "This parameter is ignored.\n"
                }
            ]
        },
        "COPYRIGHT": {
            "content": "Copyright 2017-2020 The OpenSSL Project Authors. All Rights Reserved.\n\nLicensed under the Apache License 2.0 (the \"License\").  You may not use this file  except  in\ncompliance  with  the  License.   You  can  obtain  a  copy in the file LICENSE in the source\ndistribution or at <https://www.openssl.org/source/license.html>.\n\n3.0.13                                       2026-07-29                          OPENSSL-PRIME(1SSL)",
            "subsections": []
        }
    },
    "summary": "openssl-prime - compute prime numbers",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Display an option summary."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Generate hex output."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Generate a prime number."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Generate a prime with num bits."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "When used with -generate, generates a \"safe\" prime. If the number generated is n, then check that \"(n-1)/2\" is also prime."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "See \"Provider Options\" in openssl(1), provider(7), and property(7)."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "This parameter is ignored."
        }
    ],
    "examples": [],
    "see_also": []
}