Python, mod
\nclass Solution:\n    def prefixesDivBy5(self, A: List[int]) -> List[bool]:        \n        num = 0\n        for i in range(len(A)):\n            num = 2*num 
```\nclass Solution:\n    def prefixesDivBy5(self, A: List[int]) -> List[bool]:        \n        num = 0\n        for i in range(len(A)):\n            num = 2*num + A[i]\n            A[i] = True if num % 5 == 0 else False\n               \n        return A\n```
['Python3']