peuler 0.1.0

A Rust crate with solutions to the Project Euler problems
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::Solution;
use pmath::factors::prime_factors;

problem!(Problem0003, 3, "Largest Prime Factor");

impl Solution for Problem0003 {
    fn solve(&self) -> String {
        const TARGET: u64 = 600851475143;
        prime_factors(TARGET).max().unwrap().to_string()
    }
}