Talk:Rare numbers: Difference between revisions

Line 1,271:
</pre>
--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 14:09, 4 January 2021 (UTC)
* diffsDo 2 through 11 digits by only looking at "middles" (no "outers") pre-computation ofaccomplished squaresby doesadding an additional definition for nLH() that takes only multiplesthe function of 9optional don'tlong compute everywhen squaredoing upless tothat 12 100_000digits, splitlimit diffs pre-computationto ofbe squaresabove from sums pre-computationzero, and eachsums hasto abe separateabove a limit forat which smaller squares produced are less than the preforward number itself (pow10[n-computation:1] One* lot4) of bsmakeL(), ismakeH() enoughreturn fornLH() anynow, program.instead Bothof rangesnLH() cancomponents: beOkay storedbut inno aneed singlefor pilean ofextra bsglobal variable. IfIt theis rangesreally overlapa theyparameter areto stillnLH's bothconstructor (single) as now only one constructor is truerequired.--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 14:09, 4 January 2021 (UTC)
* 8 do 2 through 11 digits by only looking at "middles" (no "outers") - accomplished by adding an additional definition for nLH() that takes only the function of optional long when doing less that 12 digits, limit diffs to be above zero, and sums to be above a limit at which smaller squares produced are less than the forward number itself (pow10[n-1] * 4) makeL(), makeH() return nLH() now, instead of nLH() components: Okay but no need for an extra global variable. It is really a parameter to nLH's constructor (single) as now only one constructor is required.--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 14:09, 4 January 2021 (UTC)
* The pair "construction" shouldn't incur an overhad as the compiler should optimize it away. It adds flexability to the design, the need for which I shall reserve judgement.--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 14:09, 4 January 2021 (UTC)
 
2,172

edits