Sharedsupport / 2016-03-03-gap-big-output.sagewsOpen in CoCalc
Examples for support purposes...
%gap
# for loop
for i in [1..10] do
  if IsPrime(i) then
    Print(i," prime\n");
  else
    Print(i," not prime\n");
  fi;
od;
for i in [1..10]:
    if is_prime(i):
        print i, 'prime'
    else:
        print i, 'not prime'
1 not prime 2 prime 3 prime 4 not prime 5 prime 6 not prime 7 prime 8 not prime 9 not prime 10 not prime
gap._eval_using_file_cutoff = 100000
%gap
# for loop
for i in [1..10] do
  if IsPrime(i) then
    Print(i," prime\n");
  else
    Print(i," not prime\n");
  fi;
od;