for_each_prime_number_from(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– for_each_prime_number_from πŸ’–

okay so bestie, this is the Kernel API Manual page for for_each_prime_number_from, and it is literally here to help you iterate over primes. vibe check: passed ✨

🌸 NAME 🌸

for_each_prime_number_from β€” iterate over each prime upto a value

✨ SYNOPSIS ✨

for_each_prime_number_from (prime , from , max );

πŸŽ€ ARGUMENTS πŸŽ€

  • prime β€” the current prime number in this iteration πŸ‘‘
  • from β€” the initial value 🌱
  • max β€” the upper limit 🚧

πŸ’… DESCRIPTION πŸ’…

Starting from from, iterate over each successive prime number up to the max value. On each iteration, prime is set to the current prime number. Slay. 🫢

⚠️ termination warning, bestie: max should be less than ULONG_MAX, and from less than max, to ensure termination. No cap, this one matters. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹


xoxo, your kernel bestie πŸ’– source/version: ./include/linux Β· date: October 2026 Β· for_each_prime_number_from(9) out πŸ‘‘πŸ¦‹

πŸ“¦ where this page comes from