Cody

# Problem 1084. Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)

Solution 1894518

Submitted on 8 Aug 2019 by jack walker
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
assert(digits_squared_chain(649) == 1)

y = 649

2   Pass
assert(digits_squared_chain(79) == 1)

y = 79

3   Pass
assert(digits_squared_chain(608) == 1)

y = 608

4   Pass
assert(digits_squared_chain(487) == 1)

y = 487

5   Pass
assert(digits_squared_chain(739) == 1)

y = 739

6   Pass
assert(digits_squared_chain(565) == 1)

y = 565

7   Pass
assert(digits_squared_chain(68) == 1)

y = 68

8   Pass
assert(digits_squared_chain(383) == 1)

y = 383

9   Pass
assert(digits_squared_chain(379) == 1)

y = 379

10   Pass
assert(digits_squared_chain(203) == 1)

y = 203

11   Pass
assert(digits_squared_chain(632) == 1)

y = 632

12   Pass
assert(digits_squared_chain(391) == 1)

y = 391

13   Pass
assert(digits_squared_chain(863) == 1)

y = 863

14   Pass
assert(digits_squared_chain(13) == 1)

y = 13

15   Pass
assert(digits_squared_chain(100) == 1)

y = 100

16   Pass
assert(digits_squared_chain(236) == 1)

y = 236

17   Pass
assert(digits_squared_chain(293) == 1)

y = 293

18   Pass
assert(digits_squared_chain(230) == 1)

y = 230

19   Pass
assert(digits_squared_chain(31) == 1)

y = 31

20   Pass
assert(digits_squared_chain(806) == 1)

y = 806

21   Pass
assert(digits_squared_chain(623) == 1)

y = 623

22   Pass
assert(digits_squared_chain(7) == 1)

y = 7

23   Pass
assert(digits_squared_chain(13) == 1)

y = 13

24   Pass
assert(digits_squared_chain(836) == 1)

y = 836

25   Pass
assert(digits_squared_chain(954) == 89)

y = 954

26   Pass
assert(digits_squared_chain(567) == 89)

y = 567

27   Pass
assert(digits_squared_chain(388) == 89)

y = 388

28   Pass
assert(digits_squared_chain(789) == 89)

y = 789

29   Pass
assert(digits_squared_chain(246) == 89)

y = 246

30   Pass
assert(digits_squared_chain(787) == 89)

y = 787

31   Pass
assert(digits_squared_chain(311) == 89)

y = 311

32   Pass
assert(digits_squared_chain(856) == 89)

y = 856

33   Pass
assert(digits_squared_chain(143) == 89)

y = 143

34   Pass
assert(digits_squared_chain(873) == 89)

y = 873

35   Pass
assert(digits_squared_chain(215) == 89)

y = 215

36   Pass
assert(digits_squared_chain(995) == 89)

y = 995

37   Pass
assert(digits_squared_chain(455) == 89)

y = 455

38   Pass
assert(digits_squared_chain(948) == 89)

y = 948

39   Pass
assert(digits_squared_chain(875) == 89)

y = 875

40   Pass
assert(digits_squared_chain(788) == 89)

y = 788

41   Pass
assert(digits_squared_chain(722) == 89)

y = 722

42   Pass
assert(digits_squared_chain(250) == 89)

y = 250

43   Pass
assert(digits_squared_chain(227) == 89)

y = 227

44   Pass
assert(digits_squared_chain(640) == 89)

y = 640

45   Pass
assert(digits_squared_chain(835) == 89)

y = 835

46   Pass
assert(digits_squared_chain(965) == 89)

y = 965

47   Pass
assert(digits_squared_chain(726) == 89)

y = 726

48   Pass
assert(digits_squared_chain(689) == 89)

y = 689