Learning Pairwise Relatively Prime Calculator