02-01-2013, 04:55 PM
how do i test if a number is prime or not
Prime number test
|
02-01-2013, 04:55 PM
how do i test if a number is prime or not
02-01-2013, 05:12 PM
02-01-2013, 07:32 PM
02-01-2013, 07:37 PM
good idea. All prime numbers except 2 are not divisible by 2.
02-03-2013, 08:03 PM
What way we could calculate the fastest way possible using QM?
Perhaps using ASM...? ex: http://www.findthatzipfile.com/search-6 ... me.zip.htm
02-04-2013, 05:12 AM
Not sure about the fastest way but you can eliminate more numbers. based on The Sieve_of_Eratosthenes
http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes
02-04-2013, 08:03 PM
I would simply create a dll, in C++ language.
In QM the fastest way is assembler, using __Tcc class. Or C, but TCC does not optimize it, therefore it is several times slower than asembler, although many times faster than QM.
02-05-2013, 10:51 AM
Is possible integrate the fastest code in the Dll functions exported by QM?
02-05-2013, 11:52 AM
No. Maybe you can find an existing dll somewhere. Or good C/C++ source code, then I can compile it to dll.
02-08-2013, 10:55 AM
|
« Next Oldest | Next Newest »
|