First version of the metaprogramming erasthostenes sieve, for the prime competition

Not certain if it will work or not... yet. I used skynet as a name,
since I'm using template metaprogamming to generate the program which
calculates the 2000000 primes
Add makefile and a renaming of the original metaprogramming.cc file
Fix syntax, semantic and some logical bugs. Now it can generate the first 8 primes.
Fix bug that didn't check if a number close to the max boundary was composite or not.
Skynet is slow, and it has a limit not further beyond 50000 (5133 primes)
Start again to code based on skynet 1

This time I'm having in mind that there is a limit to template
recursion, and also that the access to the recursive template as I was
dong have an expensive cost :-(
So I'm using a bitset now, and the idea is to do a precalculation in
compile time of the multiples.
Change strategy, I will just use the a bitset and the erasthostenes sieve
Fix an out of range loop

The biset contained MaxNumber elements, but I was taking 2 elements
more.
Removed buffer for fstream

It was not helping much, at least in the way I was using it, so I
removed it.
Have only one loop to mark the multiples.
Skip to mark its multiples if it has been marked as composite already
Fix errors in the output.

* It was printing the index numbers instead of the prime numbers, it is
  fixed now
* also fixed the maxnumber, so that it calculates 2000000 numbers
Avoid the creation of all the multiples of 2.
Fix the time measurement.

Using std::clock now.
Optimize the output with fstream.

Apparently std::endl flushes the data into the file, making my efforts
to print in blocks useless.
Update makefile with optimization options.
Optimized printing time by using an alternative to sprintf, and also a ofstream

I've done more trials, using fprintf, and I returned in the end to use
ofstream, which performed a little bit better. In any case, most of the
time was consuming by the coversion to string of the integer to be
printed, so I started to search around and that's how I found boost,
which is performing very decently :-)
Using a simple memory buffer, before printing.
Change the name of the file to heisenberg

Most of the guys in the competition are fans of Breaking Bad ...
http://youtu.be/_IjrX5BdllQ
I was the last in the competition ... but let see for how long haha
Change << operator with a the unformatted ofstream::write