Skip to main content

Timeline for Find primes using Wilson's Theorem

Current License: CC BY-SA 4.0

10 events
when toggle format what by license comment
Nov 28, 2022 at 14:41 history edited Sᴀᴍ Onᴇᴌᴀ CC BY-SA 4.0
Use mathjax formatting for expressions in text; correct typos
Nov 27, 2022 at 14:16 comment added agtoever You are right! That doesn't make it more difficult. I implemented Wilson's prime test using Legendre's formula, but it performs (much) worse than the gmpy2 optimised code. :-(
Nov 27, 2022 at 14:15 history edited agtoever CC BY-SA 4.0
Added code for Wilsons test using Legendre's formula.
Nov 27, 2022 at 11:29 comment added Toby Speight Why does the + 1 make it tricky? (a + 1) % b is just ((a % b) + 1) % b, or (a % b) + 1 unless that is equal to b, else zero.
Nov 27, 2022 at 11:25 history edited Toby Speight CC BY-SA 4.0
Deprettify the non-code
Nov 27, 2022 at 9:50 history edited agtoever CC BY-SA 4.0
deleted 2 characters in body
Nov 27, 2022 at 8:26 history edited agtoever CC BY-SA 4.0
Added gmpy2 solution and performance stats.
Nov 26, 2022 at 17:16 vote accept Kevin Perez
Nov 26, 2022 at 11:36 history edited Toby Speight CC BY-SA 4.0
Spelling fix
Nov 26, 2022 at 11:01 history answered agtoever CC BY-SA 4.0