How to find the number of pairs of non-coprimes in two given arrays in python?

前端 未结 0 497
小鲜肉
小鲜肉 2020-12-02 13:39

How to go about finding the number of non-coprimes in a given array? Suppose a=[2 5 6 7] b=[4 9 10 12] Then the number of non-coprimes will be 3, since You can remove: (2, 4

相关标签:
回答
  • 消灭零回复
提交回复
热议问题