Fast Checking of Lucky Number...

Check fast if given number is lucky or not...check if any number is divisible by 3 or not....Calculate Cumulative sum of any number fast!