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