Talk:Cuban primes: Difference between revisions

m
m (adde postscript)
m (→‎Task in a wrong category: added a comment.)
 
(6 intermediate revisions by 2 users not shown)
Line 9:
 
::: Darn! :-) --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 14:37, 1 February 2019 (UTC)
 
:::: However ... &nbsp; &nbsp; If you'd take a possible (high) average of the price of a kilowatt-hour &nbsp; (say, in the USA) &nbsp; of &nbsp; '''15¢''', &nbsp; which is &nbsp; '''1/4¢''' &nbsp; per kilowatt-minute &nbsp; (I pay less than a dime/kilowatt-hour). &nbsp; Most modern PC's today have a power supply of 250 watts (or thereabouts, some home-built PCs have larger ones), &nbsp; but that usage is that usually only that high when starting up the electric motors for the disk drives and whatnot. &nbsp; Once running, most PCs use around 85 watts up to around 250 watts, excluding the monitor. &nbsp; So, at 250 watts for a powerful multi-core PC, and for running it for a couple of minutes, &nbsp; that comes to &nbsp; '''1/2¢'''. &nbsp; This is all on-the-back-of-a-envelope type calculation. &nbsp; Let's double that to include the monitor's power consumption and other external devices. &nbsp; Now, if you double that, &nbsp; and double it again, &nbsp; and then double it once again, &nbsp; that's still less than a nickle. &nbsp; If you send me a SASE, &nbsp; I'll send you a check. &nbsp; <big><big><big> 🙂 </big></big></big> &nbsp; &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 01:57, 16 August 2019 (UTC)
 
== Python not correct ==
Line 16 ⟶ 18:
 
:: Looks like whomever translated it managed to put a variable name "u" in place of a "v" in the "mx = int(math.sqrt(v))" statement. Works a lot better now. Also the mx var was from 1 instead of 0, but it's unknown if that contributed to the issue.--[[User:Enter your username|Enter your username]] ([[User talk:Enter your username|talk]]) 02:16, 10 June 2019 (UTC) <br/>'''P.S.''' The translator apparently translated this from the C# version. It had a nested assignment statement that could be confusing to some. If the translator had noticed that the C# version was a translation (in turn) of the Visual Basic .NET version, (where nested assignments are not allowed), they might not have experienced this issue, as it was clearer (in the vb version) which variable was being acted upon.--[[User:Enter your username|Enter your username]] ([[User talk:Enter your username|talk]]) 02:23, 10 June 2019 (UTC)
 
::: Thanks for fixing the program. &nbsp; &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 02:40, 10 June 2019 (UTC)
 
== Task in a wrong category ==
 
This task is defined to be in the category [[:Category:Programming_Languages]], surely by a mistake, so it is appears at the end of such that page. [[User:Laurence|Laurence]] ([[User talk:Laurence|talk]]) 20:42, 13 October 2019 (UTC)
 
: Could you be more specific please. &nbsp; What is "it" and what is the name of "that" page. &nbsp; I could not find what you are referring to, perhaps I'm overlooking the obvious. &nbsp; &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 00:13, 14 October 2019 (UTC)
 
:: Hi. The page had been already fixed by [[User:Thundergnat]] when you retrieved it. It seems that the page contained a <code>[ [ Category:Programming_Languages ] ]</code> (I am not sure), so this task was listed in the programming languages page, as it were one of them. Well (in order to be precise), it was listed as the only one entry of a category named "Programming languages", because actual programming languages are in fact subcategories. [[User:Laurence|Laurence]] ([[User talk:Laurence|talk]]) 00:31, 14 October 2019 (UTC)
 
::: OK, thanks. &nbsp; I had thought I was going blind or something worse. &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 00:55, 14 October 2019 (UTC)