Your browser (Unknown 0) is no longer supported. Some parts of the website may not work correctly. Please update your browser.
Lesson 10

Prime and composite numbers

Tasks:

painless
Count factors of given number n.
respectable
Find the maximum number of flags that can be set on mountain peaks.
painless
Find the minimal perimeter of any rectangle whose area equals N.
respectable
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].