tag:blogger.com,1999:blog-7577421612120825312.post234374958559566158..comments2023-10-03T10:41:13.944+01:00Comments on Functional Fun: Project Euler Problem 7 (and 10)Anonymoushttp://www.blogger.com/profile/01345100698738870730noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-7577421612120825312.post-19499496824850292492012-04-16T15:36:52.529+01:002012-04-16T15:36:52.529+01:00No worries - Writing down the question is always a...No worries - Writing down the question is always a good way of unlocking the answer yourself. You've heard of <a href="http://c2.com/cgi/wiki?RubberDucking" rel="nofollow">Rubber Ducking</a>?Samuel Jackhttp://blog.functionalfun.netnoreply@blogger.comtag:blogger.com,1999:blog-7577421612120825312.post-27137342672448743982012-04-16T02:16:41.236+01:002012-04-16T02:16:41.236+01:00hello, I was going through your solution and I am ...hello, I was going through your solution and I am wondering why you have 2 Unfold extension methods? I know they are both necessary(I tried removing them), but I don't fully understand why. Can you clear this up for me? William Blackburnhttp://www.facebook.com/william.blackburn2noreply@blogger.comtag:blogger.com,1999:blog-7577421612120825312.post-38914487186093214362012-01-03T15:16:24.137+00:002012-01-03T15:16:24.137+00:00Nice explanation. However, I was a little confused...Nice explanation. However, I was a little confused when you said<br />"we don't need to worry about checking divisibility by primes bigger than<br /> the square root of the candidate: if it is divisible by a prime bigger <br />than the square root, it must also be divisible by a prime smaller than <br />the square root"<br /><br />However, I got what you meant by referring the following forum<br />http://mathforum.org/library/drmath/view/56001.htmlSameer Shahhttp://www.facebook.com/samomania21noreply@blogger.comtag:blogger.com,1999:blog-7577421612120825312.post-471540590150959442010-11-17T09:51:24.111+00:002010-11-17T09:51:24.111+00:00@urza,
SelectMany is designed to flatten many se...@urza,<br /> SelectMany is designed to flatten many sequences into a single sequence - if you had listOfLists = List>, for example, listOfLists.SelectMany(list => list) would flatten the list of lists into a single sequence of IEnumerable containing all the individual lists joined together.<br /><br />unfold, on the other hand, is used to generate sequences starting with a single item, using a function to compute the next item based on the previous one.Anonymoushttps://www.blogger.com/profile/01345100698738870730noreply@blogger.comtag:blogger.com,1999:blog-7577421612120825312.post-58576116310486783212010-11-17T00:33:56.103+00:002010-11-17T00:33:56.103+00:00Hello, may i ask what is the difference between yo...Hello, may i ask what is the difference between your unfold and SelectMany?urzanoreply@blogger.com