โ† Samsung questions

Count magic numbers divisible by A or B up to N

Filed under Samsung

Given integers A, B, and N, count the number of integers from 1 to N that are divisible by A or B.

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.