binary representation of ip prefixes


How does an ip prefix

90.0.0.0/4 

translate to

0101∗ 

in binary

and

10.0.0.0/2 

to this:

00* 

I’m trying to understand it since a while now but I am unable to derive the logic.