The language consists of binary integers x such that
2 does not divide x
3 does not divide x
If you want to give yourself an idea of what numbers this includes you
can solve the system with the Chinese Remainder Theorem, but the actual
DFA is similar to what you did for A5P2 with an extra condition. You can
also try drawing the NFA first; one of the examples in Friday's tutorial
had a similar NFA to DFA conversion as this question.
If it's failing in a few cases then you probably don't have enough
states to cover all possibilities.