View Single Post
Old 2014-02-09, 20:54   #2
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

3×1,423 Posts
Default

Quote:
Originally Posted by daxmick View Post
My goal is to collect "all" the primes starting with 2.
There are an infinite number of primes. What are you really trying to do?

Quote:
Originally Posted by daxmick View Post
I've written a PHP script that uses sqlite as a backend database. My goal is to collect "all" the primes starting with 2.

I've done *some* work with PHP and C relating to large numbers, using GMP, but I haven't played with Python any more than printing out "Hello World".

That said, is 1 language better than another? I understand that compiled code executes faster but once the program is loaded into memory aren't they all pretty much the same?
In practice, you might have bottlenecks for various reasons. In the specific context of using GMP, it shouldn't matter much which you use, since I'd assume the bulk of the work is done in the GMP library's code, not in yours.
Mini-Geek is offline   Reply With Quote