/* Returns: the smallest prime number from a built-in array of primes which is larger than @num  */
guint g_spaced_primes_closest(guint num)
/* Returns: the smallest prime number from a built-in array of primes which is larger than @num  */
guint g_spaced_primes_closest(guint num)
{
  gint i;
  for (i = 0; i < G_N_ELEMENTS (g_primes); i++)
    if (g_primes[i] > num)
      return g_primes[i];
  return g_primes[G_N_ELEMENTS (g_primes) - 1];
}