← Accenture questions
CodingEasy-MediumReported in a candidate post, Aug 2023

Find if a Number is Lucky

Filed under Accenture

Determine if a given integer is 'unlucky'. A number is defined as unlucky if its decimal representation contains the digits '1' or '7'.

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

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