Skip to content
Skip to main navigation
Skip to first column
Skip to second column
Singular
Search
Download 4-2-0
Try Online
Online Manual
Graphical Interface
Report Bugs
Books
Teams
Join Us
Home
Online Manual
D.12.3.39 is_prime
Procedure from library
crypto.lib
(see
crypto_lib
).
Usage:
is_prime(n)
Return:
1 if n is prime, 0 otherwise
Example:
LIB "crypto.lib"; ring r = 0,x,lp; is_prime(10); ==> 0 is_prime(7); ==> 1
Main
Home
News
Publications
How to cite Singular
Community
Forum
Trac
Events
Mailing List
Blog
System
New Libraries
Source Code
Open Tasks
Third-party software
Misc
Links
Contact
Impressum
Internal