Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Next_prime Calculator

Next_prime

Function: next_prime (<n>) Returns the smallest prime bigger than <n>.

          (%i1) next_prime(27);
          (%o1)                       29

(%o1)                                true
(%i2) 

Next_prime Example

Related Examples

next_prime-prev_prime-random

syt1: 1 + random(6);

sat1: 3+random(7);

leveys1: syt1*next_pr...

Calculate

next_prime

p= next_prime(2^128);

q= next_prime(2^128+2...

n= p*q;

Calculate

next_prime

next_prime(2700000000...

Calculate

next_prime

next_prime(101);

Calculate

next_prime

x:next_prime(11579208...

x+1;

Calculate

next_prime

next_prime(10^20);

inv_mode(7,40);

Calculate

next_prime

next_prime(100);

Calculate

next_prime

next_prime(10^20);

inv_mode(7,40);

Calculate

next_prime-prev_prime-random

syt1: 2 + random(3);

sat1: 3+random(2);

if syt1*sat1 > 20 ...

Calculate

next_prime

p1:next_prime(1111111...

Calculate