What langage is fastest for mathmatical calculations?

Newbie Member
9Dec2010,18:11   #1
dave1234's Avatar
Hi,

I have a project I'm working on which requires sheer brute force to get the answer. I was wondering what programming language would perform a huge number of simple mathmatical calculations the fastest.

I do not have any other requirement other than being able to come up with the answer in the shortest timescale possible... at the moment although this is very vague I am estimating it would take my computer approximately 5 months to perform all the calculations, based on a trial run of a smaller amount of data.

I have no idea what would be best... Would an older "simpler" language such as Pascal be faster or an object orientated language or....

Any advice would be appreciated

Thanks
Dave
Skilled contributor
14Dec2010,23:11   #2
cpulocksmith's Avatar
im curious. what exactly are you working on? there could be many things to take into account on this speed thing, so if you could fill me in a little more i might be able to help you out a little.
Newbie Member
15Dec2010,14:13   #3
dave1234's Avatar
the best way to describe the project is "trying find the answer to a jigsaw puzzle" I effectively want to write a program to work through each possible combination to see if the pieces fit or not, there are billions of possible combinations.

The maths isn't too complex, just a lot of it!
Invasive contributor
21Feb2011,03:52   #4
lionaneesh's Avatar
Quote:
Originally Posted by dave1234 View Post
Hi,

I have a project I'm working on which requires sheer brute force to get the answer. I was wondering what programming language would perform a huge number of simple mathmatical calculations the fastest.

I do not have any other requirement other than being able to come up with the answer in the shortest timescale possible... at the moment although this is very vague I am estimating it would take my computer approximately 5 months to perform all the calculations, based on a trial run of a smaller amount of data.

I have no idea what would be best... Would an older "simpler" language such as Pascal be faster or an object orientated language or....

Any advice would be appreciated

Thanks
Dave
Brute Forcer ...

Old Nifty x86 Assembly is the best for your work..
You can have a look at the Jhon The Ripper

Its pretty well written ...