Yep, there's pretty much a trick for every reasonably small divisor. For instance GCC 4.9 translates division by 711 as follows (dividend in edi):
mov eax, edi
mov edx, -1202107583
imul edx
mov eax, edi
sar eax, 31
add edx, edi
sar edx, 9
sub edx, eax
mov eax, edi
imul edx, edx, 711
sub eax, edx
This is, uh, pretty deep magic. Apparently this sequence of ops, including those two imuls, is still faster than a single idiv.