Python3 simple solution
\nclass Solution:\n    def prefixesDivBy5(self, nums: List[int]) -> List[bool]:\n        res = []\n        n = 0\n        for i in nums:\n            n *= 2\n  
```\nclass Solution:\n    def prefixesDivBy5(self, nums: List[int]) -> List[bool]:\n        res = []\n        n = 0\n        for i in nums:\n            n *= 2\n            if i == 1:\n                n += 1\n            res.append(n % 5 == 0)\n        return res\n```\n**If you like this solution, please upvote for this**
['Python3']