primes-upto ( n -- seq )

Prime numbers

Prime numbers

Prev: | next-prime ( n -- p ) |

Next: | primes-between ( low high -- seq ) |

Vocabulary

math.primes

Inputs

Outputs

Word description

Return a sequence containing all the prime numbers smaller or equal to n.

See also

nprimes, primes-between

Definition

math.primes

Inputs

n | an integer |

Outputs

seq | a sequence |

Word description

Return a sequence containing all the prime numbers smaller or equal to n.

See also

nprimes, primes-between

Definition

This documentation was generated offline from a
`load-all`

image. If you want, you can also
browse the documentation from within the UI developer tools. See
the Factor website
for more information.

Factor 0.100 x86.64 (2263, heads/master-9991726d35, Feb 25 2024 16:34:19)