prime detector