Not found locally for openssl-prime. Try Google search
OPENSSL-PRIME(1SSL) â OpenSSL prime number utility
openssl-prime - compute prime numbers
| Use Case | Command | Description |
|---|---|---|
| Check if a number is prime | openssl prime 7 |
Check if 7 is prime |
| Generate a prime of specific bit length | openssl prime -generate -bits 2048 |
Generate a 2048-bit prime |
| Generate a safe prime | openssl prime -generate -safe -bits 2048 |
Generate a safe prime (n where (n-1)/2 is also prime) |
| Check with hex output | openssl prime -hex 7 |
Check if 7 is prime and output in hex |
openssl prime [-help] [-hex] [-generate] [-bits num] [-safe] [-provider name] [-provider-path path] [-propquery propq] [-checks num] [number ...]
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.
Display an option summary.
Generate hex output.
Generate a prime number.
Generate a prime with num bits.
When used with -generate, generates a "safe" prime. If the number generated is n, then check that (n-1)/2 is also prime.
See "Provider Options" in openssl(1), provider(7), and property(7).
This parameter is ignored.
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.
Generated by phpman v4.10.0-16-g1a0e228 Author: Che Dong Under GNU General Public License
2026-09-22 13:45 @216.73.217.0
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)