Change the module04::ex03
and swap module04::ex03
with module04::ex04
#37
Labels
Enhancement
Something already existing that could be improved or rework for the better
In order to make it more interesting to use previously implemented iterators, I suggest that we re-make the
module04::ex03
.The current exercise wants us to implement an iterator to generate a Fibonacci sequence, allowing us to choose manually the first terms of the sequence, but the additional function to implement is not well designed to either force or strongly encourage us to use the iterators we previously implemented. Thus, I suggest a new exercise, that would want us to implement an iterator to find the next prime number, starting at
0
, and after that, as an additional function, it could ask us to implement the following function:that have to decompose the given number
n
into aVec
of[u32; u8]
where the first element will be the prime factor value, and the second element will be the prime factor power.For example:
Also, if this new exercise is accepted, I suggest that we interchange the
module04::ex03
and themodule04::ex04
because of the difficulty of this new exercise, and because the currentmodule04::ex04
seems easier, so to preserve the increasing difficulty along the entire module, we should swap them.The text was updated successfully, but these errors were encountered: