Boston Number failing in two test cases

Hi,

I am trying to solve this problem.

It is failing the two test cases. I ran it in local ide with stress test, everything seems fine.

Thanks.

The first few such numbers are 4,22 ,27 ,58 ,85 ,94 and 121

Have you checked for these ?

I didn’t. Now program execute these outcomes :

2 22 27 58 85 94 121
T F T F F F F

May be, I didn’t understand the question correctly. How come 22 is a Boston Number : 22 : 2 * 11 != 2 + 2 ?

Thanks.

Nevermind , figured it out :smiley:

1 Like