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
12
13
use crate::Solution;
use pmath::partition_p;

problem!(Problem0076, 76, "Counting Summations");

impl Solution for Problem0076 {
    fn solve(&self) -> String {
        // the solution is the number of partitions of 100 minus 1
        // because 100 itself is counted as a partition

        (partition_p(100) - 1).to_string()
    }
}