Appendix A: System Routines — EStack Arithmetic
push_is_prime
Declaration:
void push_is_prime (EStackIndex i )
Category(ies):
EStack Arithmetic
Description:
Pushes TRUE if the expression indexed by i is determined to be a prime
exact whole number, such as 2, 2., 3, 3., 5, 5., etc. Pushes FALSE if it is
any other number or a transfinite tag. Otherwise throws ER_DOMAIN.
NOTE: Floats > MAX_EXACT_FLOAT_WHOLE_NUMBER are whole numbers, but not
Inputs:
i
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI-89 / TI-92 Plus
Differences:
None
See Also:
push_factor
Example:
push_Float (2.0);
push_is_prime (top_estack);
push_is_prime (Integer1Index);
push_negate_quantum_as_negint (2u);
push_is_prime (top_estack);
push_reciprocal_of_quantum (2u);
push_is_prime (top_estack);
TI-89 / TI-92 Plus Developer Guide
exact whole numbers.
— Index to the top tag of an expression.
/* Pushes TRUE_TAG */
/* Pushes FALSE_TAG */
/* Pushes FALSE_TAG */
/* Pushes FALSE_TAG */
Not for Distribution
491
Beta Version January 26, 2001