No it's not. It fails at 7th digit, 9876543 is not divisible by 7.