You can use [i]Commands[/i] when working with the [img]https://wiki.geogebra.org/uploads/thumb/4/47/Menu_view_cas.svg/16px-Menu_view_cas.svg.png[/img][i]CAS View[/i]. They are always followed by a set of parentheses (or brackets) containing the parameters necessary for the [i]Command[/i].
Find out if the number 12349 is a prime number. If not, display a list of its prime factors.
[table][tr][td]1.[/td][td][math]IsPrime(12349)[/math][/td][td]Use the command [code]IsPrime(12349) [/code]to find out if the number is a prime number.[br][b]Hint:[/b]You will get either true or false as an answer.[/td][/tr][tr][td]2.[/td][td][math]PrimeFactors(12349)[/math][/td][td]Use the command [code]PrimeFactors(12349)[/code]to find all prime factors of this number.[/td][/tr][/table]
After typing in the first three letters of a [i]Command[/i] into the [size=100][i]CAS Input Bar[/i][/size], [i]GeoGebra[/i] tries to complete the [i]Command [/i]and shows you the required parameters within the brackets.[list][*]If [i]GeoGebra [/i]suggests the desired [i]Command[/i], press the [i]Enter[/i] key to place the cursor within the brackets.[/*][*]If the suggested [i]Command [/i]is not the one you wanted to enter, just keep typing until the suggestion matches.[/*][/list]
Find the greatest prime number smaller than 1000, as well as the smallest prime number greater than 1000.
[table][tr][td]1.[/td][td][code]PreviousPrime(1000)[br][/code][/td][td]Use the command [code]PreviousPrime(1000)[/code] to find the greatest prime number smaller than 1000.[/td][/tr][tr][td]2.[/td][td nowrap][code]NextPrime(1000)[/code][/td][td]Use N[code]extPrime(1000)[/code] to calculate the smallest prime number greater than 1000.[/td][/tr][/table]