advent_of_code_2024::day_11

Function count_for_stone_prime_cache

source
fn count_for_stone_prime_cache(stone: u64, iterations: u8) -> usize
Expand description

Primes the cached function count_for_stone. Recursive function to calculate the expansion of a single stone. There are many repeats, especially for small numbers, so this is cached to allow the program to run quickly.

ยงCaching

This is a cached function that uses the COUNT_FOR_STONE cached static.