99 Problems Rust Arithmetic

Table of Contents

Arithmetic

31. Determine whether a given integer number is prime.

{{# include _include/code/algorithms/99-problems/rust/src/arithmetic/prime.rs }}

32. Determine the greatest common divisor of two positive integer numbers.

{{# include _include/code/algorithms/99-problems/rust/src/arithmetic/gcd.rs }}

33. Determine whether two positive integer numbers are coprime.

{{# include _include/code/algorithms/99-problems/rust/src/arithmetic/coprime.rs }}

34. Calculate Euler's totient function phi(m).

{{# include _include/code/algorithms/99-problems/rust/src/arithmetic/list_primes.rs }}

35. Determine the prime factors of a given positive integer.

{{# include _include/code/algorithms/99-problems/rust/src/arithmetic/prime_factors.rs }}