ulam crate
ulam spiral lib for rust.
- Takes a Coord( x, y ) and returns a value in the spiral.
- Takes a value and returns a Coord(x,y).
- Can also be used to produce pictures of ulam spirals with primes colored.
Important Notes
- this current starts with 0 in the middle and starts to the right.
Coord
This Coord is equal the value of 1 if passed to the
Example usage:
let mut ulam_points = new;
for x in -201..201
let c = new;
let a = get_ulam_point;
println!;
println!;
generate
.unwrap
.save;