- array-range-queries, Arrays, Mathematical, prefix-sum

Count of Perfect Numbers in given range for Q queries

                const MAX = 100005;                        function isPerfect(N) {                        let sum = 1;                        for (let i = 2; i * i