Division in processor takes much time, so I want to ask how to check in fastest way if number is divisible of some other number, in my case I need to check if number is divisible by 15.
Also I've been looking through web and found fun ways to check if number is divisible of some number, but I'm looking for fast option.
NOTE: as division takes much time I'm looking for answer without /
and %
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…