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 (2264, heads/master-a743826db8, Apr 9 2024 19:44:18)