PRIMES(6)

πŸ“¦
version 2.17 Β· 4 versions
, in fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

Okay bestie, welcome to PRIMES(6) from the Games Manual β€” yes, the Games Manual, and this little utility is here to generate primes. No cap. ✨

πŸ’– NAME πŸ’–

primes β€” generate primes. That’s the whole name, and honestly it ate. πŸ’…

🌈 SYNOPSIS 🌈

primes [start [stop]]

πŸ¦‹ DESCRIPTION πŸ¦‹

The primes utility prints primes in ascending order, one per line, starting at or above start and continuing until, but not including, stop. It’s giving orderly prime parade. πŸŽ€

  • The start value must be at least 0 and not greater than stop.
  • The stop value must not be greater than 4294967295.
  • The default value of stop is 4294967295.

When the primes utility is invoked with no arguments, start is read from standard input. Then stop is taken to be 4294967295. Yep, that’s the default, bestie. πŸ’œ

  • The start value may be preceded by a single +.
  • The start value is terminated by a non-digit character (such as a newline).
  • The input line must not be longer than 255 characters. Like, do not test her. 😭

⭐ DIAGNOSTICS ⭐

Out of range or invalid input results in an appropriate error message being written to standard error. So if something’s off, she will tell you on standard error, and that’s the vibe check. 🫢

πŸ’€ BUGS πŸ’€

primes won't get you a world record. That’s the bug note, and it’s lowkey iconic. πŸ™ˆ

This page is from Debian, dated February 8, 2004 β€” vintage, but still slaying. Mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from