Function primapalooza::get_twin_primes [] [src]

pub fn get_twin_primes(n: i32) -> (i32, i32)

Returns the twin primes. A pair of prime numbers that differ by 2.

Examples

use primapalooza::get_twin_primes;
 
println!("{:?}", primapalooza::get_twin_primes(5));