Talk:Count in factors: Difference between revisions

m
→‎stating that 1 is prime: added comments about counting primes. -- ~~~~
(→‎stating that 1 is prime: None composite.)
m (→‎stating that 1 is prime: added comments about counting primes. -- ~~~~)
Line 30:
 
:I've changed it. 1 is "not composite" but that would mess with the formatting. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 21:07, 27 October 2013 (UTC)
 
:: Yes, thank for correcting the program.   I had misgivings about flagging it, but it was a very simple change to correct the error, even though it wasn't part of the task's requirements.   (I always appreciate programmers that go the ''extra mile'', even if it's just a few steps.)   I think adding a prime counter to various programs would verify that the program works correctly, at least in factoring primes.   I'm in the process of adding aforementioned code to the REXX program, with proper handling of unity. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]])