Added Prime.ts, many prime related problems