from GAP to java or C or something -


recently discovered alogrithm pretty creates numbers prime , prefixes prime.unfortunatelly me it's written in gap,how can write code in java?

    digitstoint:=function(d)       return sum([1..size(d)],i->10^(size(d)-i)*d[i]);     end;;      nestprime:=function(d)      local i,k;      in [1,3,7,9]      d:=concatenation(d,[i]);      k:=digitstoint(d);      if(isprimeint(k))       print(k,"\n");       nestprime(d);     fi;      d:=list([1..size(d)-1],j->d[j]);     od;     end;;      d in [[2],[3],[5],[7]]      k:=digitstoint(d);      print(k,"\n");      nestprime(d);     od; 


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -