(Note: This is of mathematical interest but the previous answers are better in practice.)
You could compute the least common multiple of all the divisors and see if the number is divisible by that. (Just taking the product doesn't work; consider N=16 with divisors 4 and 8.)