refactor: remove unused algebra and arithmetic interfaces; add GCD, LCM, and prime check implementations 544c80a spagestic commited on 7 days ago