used resharper to eliminate all unused directives... rewrote the nearest prime methods to be DRY. will be refactored to use longs to support problem3