##Not Run
# addition: { 3/2 } . Enter 2^a*3^b and get 3^(a+b) answer when terminated
# multiplication:
# { 455/33, 11/13, 1/11, 3/7, 11/2, 1/3 }
# then enter 2^a*3^b Terminates with 5^(a*b)
# prime generator (This function never terminates.)
#start with 10, feed to [7/3 99/98 13/49 39/35 36/91 10/143 49/13 7/11 1/2 91/1]
# and whenever the result of a run is of the form 10^p , p is prime
Run the code above in your browser using DataLab