Showing posts with label Math. Show all posts
Showing posts with label Math. Show all posts

Tuesday, April 23, 2013

Prime Factorization

Ref: Programming Challenges

Sunday, April 21, 2013

10070 - Leap Year or Not Leap Year and ...

Used divisibility rules instead of looping with taking the mod. 
For 400, test for divisibility by 100 and then test for divisibility by 4 (summing digits 3 & 4*(10))
Check for test cases on the web.