added factors and is_coprime functions in prime_lib, + tests