title: Compute nth prime at compile time
body: <p>The C++11 features, with <code>constexpr</code> and template argument packs, should in my opinion be strong enough to perform some rather complex computations. One possible example for which I have a practical application is the computation of the nth prime at compile time.</p>
  
  <p><strong>I'm asking for ways to implement this computation.</strong> If more than one solution are proposed, it might be interesting to compare them.</p>
  
  <p>To give you an idea of my performance expectations: I'd hope for some code which can find the 512th prime (which is 3671) in less than one second compile time on reasonable desktop hardware.</p>