On 2017-04-25 17:01, Devin Asay via use-livecode wrote:
However, it doesn’t seem to be reliable for very large numbers (> 100
digits) as the fellow wants. My math skills are pretty creaky. Anybody
want a crack at this? It’s a fun challenge, plus it can boost LC’s
presence on stackoverflow.

You can only represent integers up to around 2^53 without losing precision (as they are represented using IEEE doubles) which means the maximum number you can check for primality using this method is around 9007199254740992.

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to