I'm looking to write a quick benchmark program that can be compiled and run on various machines. Rather than using commercially/open-sourceally available options, I'd rather have my own to play around with threading and algorithm optimization techniques.
I have a couple that I use already, which include recursively calculating the nth number of the Fibonacci sequence, and of seeding/rand()ing a few thousand times.
Are there any other algorithms that are relatively simple, but at the same time computationally-intensive (and possibly math-related)?
(Note that these operations will be implemented in the C language.)