refactor: remove unused algebra and arithmetic interfaces; add GCD, LCM, and prime check implementations 544c80a spagestic commited on Jun 5, 2025