A prime number has only two factors, itself and one. A composite number has at least three factors, and sometimes a lot more.
MinPerimeterRectangle
Find the minimal perimeter of any rectangle whose area equals N.
Difficulty Level: Easy
Peaks
Divide an array into the maximum number of same-sized blocks, each of which should contain an index P such that A[P - 1] < A[P] > A[P + 1].
Difficulty Level: Medium