previous up next
Go backward to Output Condition
Go up to Top
Go forward to Logic Evaluator
RISC-Linz logo

Complete Specification

isNextPrime(n, p) : <=>
   n <= p /\  isPrime(p) /\ 
   ~(exists n <= q < p: isPrime(q))
isPrime(p) : <=>
   1 < p /\  forall 1 < n < p: n not | p
n | m : <=> exists p: n*p = m.

Author: Wolfgang Schreiner
Last Modification: October 6, 1999

previous up next