How to Find Prime Numbers with GeoGebra

You can use GeoGebra to check if a number is prime, or to find prime numbers. This can be especially useful with large numbers where it can be difficult to figure out if they are prime or not.

GeoGebra Instruction 1

Checking If a Number Is Prime

1.
Open Algebra View under GeoGebra icon View in GeoGebra icon Menu.
2.
Use the command

IsPrime(<Number>)

by typing it in Algebra View and inserting your number in the <Number> field.

  • If GeoGebra returns true, that means your number is a prime number.

  • If GeoGebra returns false, that means that your number is not a prime number.

3.
If your number is not a prime number, you can use the command

PrimeFactors(<Number>)

to find the prime factors of your number.

GeoGebra Instruction 2

Finding Prime Numbers

Open Algebra View under GeoGebra icon View in GeoGebra icon Menu.

  • If you have a number—no matter if it’s prime or not—and you want to find the closest prime number that is bigger than your number, use the command

    NextPrime(<Number>).

  • If you have a number—no matter if it’s prime or not—and you want to find the closest prime number that is smaller than your number, use the command

    PreviousPrime(<Number>).

Want to know more?Sign UpIt's free!