User talk:Danaj: Difference between revisions
Content added Content deleted
SqrtNegInf (talk | contribs) (→Prime conspiracy: new section) |
|||
Line 2: | Line 2: | ||
Oh the ignominy! Even 22/7 would have been more accurate... Thanks for catching this. |
Oh the ignominy! Even 22/7 would have been more accurate... Thanks for catching this. |
||
: No worries, and it really has no impact on the output. I was just stumped for a second about the magic value. It should probably be done with a 'use constant PI => 3.141593;' at the top. [[User:Danaj|Danaj]] ([[User talk:Danaj|talk]]) 17:28, 5 September 2018 (UTC) |
: No worries, and it really has no impact on the output. I was just stumped for a second about the magic value. It should probably be done with a 'use constant PI => 3.141593;' at the top. [[User:Danaj|Danaj]] ([[User talk:Danaj|talk]]) 17:28, 5 September 2018 (UTC) |
||
== Prime conspiracy == |
|||
I am possibly confused about your statement "using an array rather than a hash to store transitions". Is this what you had in mind? |
|||
[https://gist.github.com/SqrtNegInf/f3e9ef2807f225946871b385aeae6826#file-prime_conspiracy-pl Prime_conspiracy.pl] |
|||
I benchmarked, and didn't see a difference. But if you have a faster version, definitely put it on RC... --[[User:SqrtNegInf|SqrtNegInf]] ([[User talk:SqrtNegInf|talk]]) 15:07, 27 October 2018 (UTC) |
Revision as of 15:07, 27 October 2018
Wrong value for π
Oh the ignominy! Even 22/7 would have been more accurate... Thanks for catching this.
- No worries, and it really has no impact on the output. I was just stumped for a second about the magic value. It should probably be done with a 'use constant PI => 3.141593;' at the top. Danaj (talk) 17:28, 5 September 2018 (UTC)
Prime conspiracy
I am possibly confused about your statement "using an array rather than a hash to store transitions". Is this what you had in mind? Prime_conspiracy.pl I benchmarked, and didn't see a difference. But if you have a faster version, definitely put it on RC... --SqrtNegInf (talk) 15:07, 27 October 2018 (UTC)