prime.cc
/* Find the first N Carmichael numbers.  */
Find the first N Carmichael numbers.
Find the first N Carmichael numbers .
static void
find_first_n_carmichaels (int n)
{
  __builtin_printf ("First %d Carmichael numbers:", n);
  for (int i = 2; i < std::numeric_limits<int>::max() && n > 0; ++i)
    if (is_carmichael (i))
      {
	__builtin_printf (" %d", i);
	--n;
      }
  __builtin_printf ("\n");
}
static void find_first_n_carmichaels ( int n ) { __builtin_printf ( " " , n ) ; for ( int i = 2 ; i < std :: numeric_limits < int > :: max ( ) && n > 0 ; ++ i ) if ( is_carmichael ( i ) ) { __builtin_printf ( " " , i ) ; -- n ; } __builtin_printf ( " \n " ) ; }
Find the first N Carmichael numbers.
Find the first N Carmichael numbers .