To be divisible by 15 a number has to be divisible by 3 and by 5. Can we directly check number divisible for 15?

For example: Are these equal?

number = 105

(number % 15 == 0) instead of check (number % 5 == 0 && number % 3 == 0)

Thanks

- Thread starter Shervan360
- Start date

Similar Math Discussions | Math Forum | Date |
---|---|---|

Divisibility rule | Elementary Math | |

Divisibility Rules? | General Math | |

General rule of divisibility | Algebra | |

Discrete Math: Proving A Divisibility Rule | Applied Math |