Re:Google CEO says more than a quarter of the company's new ...
by kenjackson on Wednesday October 30, 2024 @10:45PM
(#42002950)
You don't need to append 'p' in the inner while loop more than once. Maybe instead of an array for keeping the list of prime factors do it in a set.
[ Parent
| on HN ]
Re:Google CEO says more than a quarter of the company's new ...
by zeroonetwothree on Thursday October 31, 2024 @12:48AM
(#42003601)
It’s valid to return the multiplicity of each prime, depending on the goal of this.
Re:Google CEO says more than a quarter of the company's new ...
by justinpombrio on Thursday October 31, 2024 @11:04AM
(#42007640)