prime.hs & time.cpp