public void Problem37() { var truncatable = Sequences.CachedPrimes() .Where(p => p > 7) .Where(p => p.Truncations() .All(t => t.IsPrime())) .Take(11) .Sum(); if (truncatable != 748317) { throw new InvalidOperationException("Problem not solved correctly"); } }