Prime checker