aoc
2023.12.25
In aoc::
year2017::
day23
Function
aoc
::
year2017
::
day23
::
composite
Copy item path
source
·
[
−
]
fn composite(n:
u32
) ->
Option
<
u32
>
Expand description
Simple
prime number check
of all factors from 2 to √n inclusive.