<![CDATA[Alternative solution]]>Here is a complementary counting approach: Note that 2,3,5 are all prime. The next 2 prime numbers are 7 and 11, and the product of them is 77. That is greater than 30, so we just need to subtract off the # of primes that are less than 30 (and 1), other than 2,3,5 . We find the next primes are 7,11,13,17,19,23,29. Thus, we get the answer 30 - (7+1) = 22.
]]>https://forum.poshenloh.com/topic/790/alternative-solutionRSS for NodeWed, 16 Jun 2021 00:36:45 GMTTue, 06 Apr 2021 20:56:43 GMT60<![CDATA[Reply to Alternative solution on Thu, 08 Apr 2021 03:06:47 GMT]]>@professionalbronco Yes, that definitely works! It's interesting how both strategies are useful in different cases- Prof. Loh's method is faster when considering larger numbers, but yours is quicker in this case with smaller numbers Nice!
]]>https://forum.poshenloh.com/post/4345https://forum.poshenloh.com/post/4345Thu, 08 Apr 2021 03:06:47 GMT