Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 313 Bytes

README.md

File metadata and controls

7 lines (5 loc) · 313 Bytes

King-Number

The “King Number” is a prime number that is the factor of the most numbers in a given list. Can you find the “King Number” in each list?

For example, for the list {2, 3, 5, 6, 9, 14, 20}, the answer is 2, since it's a factor of 2, 6, 14 and 20, while 3 is only a factor of 3, 6 and 9.