{
    "content": [
        {
            "type": "text",
            "text": "# OPENSSL-PRIME (man)\n\n## NAME\n\nopenssl-prime - compute prime numbers\n\n## SYNOPSIS\n\nopenssl prime [-help] [-hex] [-generate] [-bits num] [-safe] [-provider name] [-provider-path\npath] [-propquery propq] [-checks num] [number ...]\n\n## DESCRIPTION\n\nThis command checks if the specified numbers are prime.\n\n## TLDR\n\n> Compute prime numbers.\n\n- Generate a 2048bit prime number and display it in hexadecimal:\n  `openssl prime -generate -bits 2048 -hex`\n- Check if a given number is prime:\n  `openssl prime {{number}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (9 subsections)\n- **COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "OPENSSL-PRIME",
        "section": "",
        "mode": "man",
        "summary": "openssl-prime - compute prime numbers",
        "synopsis": "openssl prime [-help] [-hex] [-generate] [-bits num] [-safe] [-provider name] [-provider-path\npath] [-propquery propq] [-checks num] [number ...]",
        "tldr_summary": "Compute prime numbers.",
        "tldr_examples": [
            {
                "description": "Generate a 2048bit prime number and display it in hexadecimal",
                "command": "openssl prime -generate -bits 2048 -hex"
            },
            {
                "description": "Check if a given number is prime",
                "command": "openssl prime {{number}}"
            }
        ],
        "tldr_source": "official",
        "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": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-help",
                        "lines": 2
                    },
                    {
                        "name": "-hex",
                        "lines": 2
                    },
                    {
                        "name": "-generate",
                        "lines": 2
                    },
                    {
                        "name": "-bits _",
                        "lines": 2
                    },
                    {
                        "name": "-safe",
                        "lines": 3
                    },
                    {
                        "name": "-provider _",
                        "lines": 1
                    },
                    {
                        "name": "-provider-path _",
                        "lines": 1
                    },
                    {
                        "name": "-propquery _",
                        "lines": 2
                    },
                    {
                        "name": "-checks _",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "COPYRIGHT",
                "lines": 7,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}