Showing posts with label math. Show all posts
Showing posts with label math. Show all posts

03 September 2010

Project Euler Level 1 GET!

I solved 25/299 problems in Project Euler, which means I achieved level 1 of proficiency!

Through these 25 problems, I actually learned a few things alone the way:
  • The properties of prime numbers
  • How to do primality test
  • How to do prime factorization in programs
  • Implemented Sieve of Eratosthenes algorithm
  • How to use Python generators
  • Encountered dynamic programming problems and solved them
  • How to optimize your code through careful inspections
  • How to do profiling on your code
  • How to reuse existed modules in Python
Good Job Henry!

02 August 2010

What is random?

Nobody knows ... only god can define it. Human beings can only achieve pseudo-random. If you can play god, then you know the secret of throwing a dice. Even more, you can throw a dice for everyone and everything in this world.