Блог пользователя rival_R

Автор rival_R, история, 22 месяца назад, По-английски

Given an array of integers.find total number of ways to pick two elements say(ai,aj) such that gcd(ai,aj) is not prime. Note: choosing ai,aj is same as choosing aj,ai;

*please suggest solution other that bruteforce.

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится