← Bank of America questions
CodingReported in a candidate post, Sep 2021

Print numbers not divisible by 5 or 7

Filed under Bank of America

The question

Given test cases with numbers in string format up to N, output all numbers from 1 to N that are not divisible by 5 or 7.

No write-up yet. Related questions below have one.

Related Bank of America questions

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