PRIMES(1)

πŸ“¦ version 1.053, in alpine 3.24

πŸ’œ PRIMES(1) β€” like, the primes girlie πŸ’…

okay so bestie, this is a page from the User Contributed Perl Documentation section of your man pages, and it's about a lil utility literally called primes πŸŽ€ yes, that kind of primes. prime numbers. the iconic ones. let's get into it ✨


🌸 NAME 🌸

primes β€” generate primes, no cap πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

primes [start [stop]]

✨ DESCRIPTION ✨

okay so here's the vibe πŸ’–: the primes utility prints out primes in ascending order β€” one per line, bestie, one per line β€” starting at or above start and continuing until, but not including, stop. yes, "until but not including", she's exclusive at the top end, it's giving boundaries πŸ’…

the rules for the numbers, and you gotta respect the rules:

  • start must be at least 0 and not greater than stop
  • stop must not be greater than 4294967295 (that's the ceiling, don't test her 😭)
  • the default value of stop is 4294967295 β€” so if you don't say anything, she just keeps going to the big number πŸ”₯

and here's the cute part 🫢: when the primes utility is invoked with no arguments, values are read from standard input. like, she'll just sit there and listen to you. also, start and stop may be preceded by a single + character β€” one. single. plus. singular plus energy ✨


πŸ’€ BUGS πŸ’€

primes has no known bugs. flawless. unbothered. thriving 🌈

the algorithm, though? non-optimal. 😭 like it works, she's doing her best, but it's not it algorithmically. no notes, moving on πŸ™ˆ


πŸ‘‘ AUTHOR πŸ‘‘

the Perl implementation of factor was originally written by Jonathan Feinberg, jdf@pobox.com, and modified by Benjamin Tilly, ben.tilly@alumni.dartmouth.edu. shoutout to the founders, periodt πŸ«‘πŸ’–


this program is copyright (c) Jonathan Feinberg and Benjamin Tilly (1999).

this program is free and open software πŸ•ŠοΈ you may use, modify, distribute, and sell this program (and any modified variants) in any way you wish β€” provided you do not restrict others from doing the same. share the love, don't gatekeep, that's the whole deal πŸ’œβœ¨


ngl bestie, if you're feeding her numbers with a leading +, just remember it's a single + character. one. don't be extra πŸ’…

and that's the whole page, babes πŸ¦‹ signin' off from perl v5.42.2, dated 2026-02-15 β€” mwah, go generate some primes πŸ’‹πŸŒΈ

πŸ“¦ where this page comes from