[Codility - Java] 10. Prime and composite numbers - 1. CountFactors
CountFactors Prime number 소수 1보다 큰 자연수이면서, 1과 자기 자신만을 약수로 가지는 수 Composite number 합성수 1보다 큰 자연수이면서, 소수가 아닌 수 Divisor, Factor 약수 어떤 수를 나누어 떨어지게 하는 수 A positive integer D is a factor of a positive integer N if there exists an integer M such that N = D * M. For example, 6 is a factor of 24, because M = 4 satisfies the above condition (24 = 6 * 4). Write a function: class Solution { public int soluti..
2023. 1. 11. 14:04