for_each_prime_number_from(9)
π 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:maxshould be less thanULONG_MAX, andfromless thanmax, to ensure termination. No cap, this one matters. π
π¦ SEE ALSO π¦
- Kernel file:
./include/linux/prime_numbers.hπ for_each_prime_number(9)π
xoxo, your kernel bestie π source/version: ./include/linux Β· date: October 2026 Β· for_each_prime_number_from(9) out ππ¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms