← Amazon questions

Even numbers with prime set bits

Filed under Amazon

Given two integers L and R, return the count of even numbers in the inclusive range [L, R] that have a prime number of set bits in their binary representation.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.