let s = [(a,b) | a<-[10..99], b<-[a+1..99], a*mod b 10 == b*div a 10, a`mod`10==b`div`10]There are only 4 entries so this can be done by hand :)
Subscribe to:
Post Comments (Atom)
Solving problems in Project Euler using Haskell, F#, C# or plain ol' pen-and-pencil when needed. See http://www.projecteuler.net.
No comments:
Post a Comment