(digits, digitsPerRow = 50)
| 54 | |
| 55 | @staticmethod |
| 56 | def dump(digits, digitsPerRow = 50): |
| 57 | count = 0 |
| 58 | text = "" |
| 59 | for digit in digits: |
| 60 | if count % digitsPerRow == 0: |
| 61 | text += "\n" |
| 62 | text += "%d" % (digit) |
| 63 | count += 1 |
| 64 | print(text) |
| 65 | |
| 66 | def main(): |
| 67 | n = 4000 |