use crate::Solution;
use pmath::phi_0_to_n;
problem!(Problem0072, 72, "Counting Fractions");
impl Solution for Problem0072 {
fn solve(&self) -> String {
let farey_elements = 1 + phi_0_to_n(1_000_000).into_iter().sum::<u64>();
(farey_elements - 2).to_string()
}
}