Mercurial > octave
changeset 32160:93d3bcced10e
maint: Merge stable to default
author | Arun Giridhar <arungiridhar@gmail.com> |
---|---|
date | Wed, 21 Jun 2023 16:38:17 -0400 |
parents | 583c0ed2bc8f (current diff) efcfafb7ad16 (diff) |
children | e04f7335e252 |
files | |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/specfun/isprime.m Wed Jun 21 11:49:39 2023 -0700 +++ b/scripts/specfun/isprime.m Wed Jun 21 16:38:17 2023 -0400 @@ -66,6 +66,17 @@ ## @ifnottex ## < 2^64. ## @end ifnottex +## Cast inputs larger than @code{flintmax} to @code{uint64}. +## +## For larger inputs, use ‘sym’ if you have the Symbolic package installed +## and loaded: +## +## @example +## @group +## isprime (sym ('58745389709258902525390450') + (0:4)) +## @result{} 0 1 0 0 0 +## @end group +## @end example ## ## Compatibility Note: @sc{matlab} does not extend the definition of prime ## numbers and will produce an error if given negative or complex inputs.