What is the greatest 4 digit number with 13 and 7 as common factors?

The highest four digit number with 13 and 7 as common factors is 9919, which is equal to 13 x 763 and 7 x 1417.