We hope that you enjoyed solving this problem. Please do not deprive others of going through the same process by publishing your solution outside Project Euler. If you want to share your insights then please go to thread 2 in the discussion forum. -- From Project Euler site
I'll have something for you later.