Prime grid