Next Prime

Description

The command next_prime(a) returns the next prime after $a$.

Sage Cell

Code

a = 10^21
next_prime(a)

Options

None

Tags

Primary Tags: number theory

Secondary Tags: primes

Related Cells

Attribute

Permalink: http://abstract.ups.edu/aata/integers-sage.html

Author: R. Beezer

Date: 15 Jul 2017 08:57

Submitted by: Tom Judson

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License