
sumDivisors
Given a non-negative integer n, your task is to calculate the sum of its non-prime divisors.…
friendGroups
There are n kids in the class. As school year has just began, the kids barely know…
primeLength
You are given a non-negative integer N, and your task is to find all the prime…
continuedFraction
A continued fraction is a method of writing a rational fraction in the following format: You are…
primeDigits
You are given a positive integer N, your task is to calculate the total number of…
spiderMove
Một con nhện đứng ở gốc (0, 0) của một mặt phẳng Cartesian và muốn di chuyển…
howManyIntegers
Given an integer N . Find out how many positive integers exists that are smaller…
oddNumbersBeforeZero
Cho một mảng các số nguyên, hãy đếm các số lẻ trước lần xuất hiện…
sumOfDigits2
Given a positive integer n, your task is to calculate the number of integers in the…