A card is an integer is made up of four bytes. The high-order bytes are used to hold the rank bit pattern, whereas the low-order bytes hold the suit/rank/prime value of the card.
xxxbbbbb bbbbbbbb cdhsrrrr sspppppp
p = prime number of rank (deuce=2,trey=3,four=5,five=7,...,ace=41)
s = suit of card (spades=0, hearts=1, diamonds=2, clubs=3)
r = rank of card (deuce=0,trey=1,four=2,five=3,...,ace=12)
cdhs = bit turned on depending on suit of card (spades=0001,...,clubs=1000)
b = bit turned on depending on rank of card
As an example, the Five of Hearts would be represented as
00000000 00001000 00100011 01000111 = 0x00082347 = 533319