← Samsung questions

Count numbers up to N divisible by array elements

Filed under Samsung

Given an integer N and an array of M integers, count how many numbers from 1 to N inclusive are divisible by at least one element in the array.

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 Samsung questions

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