This commit is contained in:
rzmk 2023-10-15 23:21:12 +00:00
parent 5d5c0141d1
commit e25914b3cd
5 changed files with 6 additions and 6 deletions

View file

@ -575,7 +575,7 @@
<span class="bool-val">false
</span>}
<span class="doccomment">/// Write a program that finds all prime numbers in the range [start, end] within the natural numbers.
<span class="doccomment">/// Returns all prime numbers in the range [start, end].
///
/// A prime number is a positive integer greater than 1 that is
/// not evenly divisible by any positive integer other than 1 and itself.
@ -601,7 +601,7 @@
primes
}
<span class="doccomment">/// Write a program that determines the prime factorization of a positive integer `n`.
<span class="doccomment">/// Returns the prime factorization of a positive integer `n`.
///
/// For example the prime factorization of 12 is 2&lt;sup&gt;2&lt;/sup&gt; * 3&lt;sup&gt;1&lt;/sup&gt;, and the output is a HashMap of the form
/// `[(2, 2), (3, 1)]` where the first element of each tuple is the prime factor and the second element is the exponent.