Codility Common Prime Divisors

Опубликовано: 20 Октябрь 2024
на канале: Dave Kirkwood
1,265
19

CommonPrimeDivisors is a exercise in Codility where the goal is to check if sets of prime divisors between two numbers are the same. Prime divisors are factors of the numbers that are also prime numbers.

The solution gets 100% but I'm not particularly proud of it because I cheated by looking up how to check two numbers for having the same set of prime divisors.