Jump to content

Talk:CalmoSoft primes: Difference between revisions

Note about sequence length
(Further comment on timings.)
(Note about sequence length)
Line 31:
 
:::::No, there's a single pass compiler which parses the Wren source directly to bytecode (no intermediate AST) which the VM then interprets. A number of devices are used to make Wren faster though I can't see JIT compilation happening as it would make the VM too complicated. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 14:03, 9 April 2023 (UTC)
 
===Sequence length===
I agree with the above comments about the majority of the time going in finding the primes under 50 000 000, however I did notice some performance improvement by considering the sequence lengths - assuming the sequence is more than 1 prime long:
* If the sequence starts with 2, it must have even length.
* If the sequence starts with 3 or more, it must have odd length.
--[[User:Tigerofdarkness|Tigerofdarkness]] ([[User talk:Tigerofdarkness|talk]]) 10:04, 10 April 2023 (UTC)
3,043

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.