add help
This commit is contained in:
parent
b55fe61820
commit
5c42040e34
|
|
@ -45,8 +45,10 @@ func primeOmega(cmd *cobra.Command, args []string) {
|
||||||
// primeOmegaCmd represents the primeOmega command
|
// primeOmegaCmd represents the primeOmega command
|
||||||
var primeOmegaCmd = &cobra.Command{
|
var primeOmegaCmd = &cobra.Command{
|
||||||
Use: "prime-omega -n N",
|
Use: "prime-omega -n N",
|
||||||
Short: "",
|
Short: "Compute the prime omega function for all numbers less than n",
|
||||||
Long: ``,
|
Long: `Compute the prime omega function for all numbers less than n.
|
||||||
|
|
||||||
|
The prime omega functions Omega(n) and omega(n) count the number of prime factors of the input, either with or without multiplicity, respectively. For instance, 12 = 2^2 * 3, so Omega(12) = 3 and omega(12) = 2.`,
|
||||||
Run: primeOmega,
|
Run: primeOmega,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue