Tag Info

New answers tagged

2

As suggested by @ilian , this is now better using a Nest instead of the recursive approach. Block[ {a, primes, tot}, primes = Select[Range[10^9, 10^9 + 10^3], PrimeQ]; tot = 0; Do[ tot += Nest[Mod[6 #^2 + 10 # + 3, primes[[i]]] &, 1, 10^(15) - 1]; , {i, Length@primes} ]; tot ] // AbsoluteTiming Here is an even ...


4

The "Wolfram Mathematica" directory is created automatically by the front-end and is located in $UserDocumentsDirectory. It is the default directory to save new documents in and also is on TrustedPath. The typical location for Linux systems is $HOME/Documents, however it may happen to fall back on $HOME depending on the Xdg user directories setting. This ...


3

If you add this to your KeyEventTranslations.tr file it works on Linux (I only tested english keyboard layout): Item[KeyEvent["}", Modifiers -> {Command, Shift}], FrontEndExecute[{ FrontEnd`NotebookWrite[FrontEnd`InputNotebook[], "{", After], FrontEnd`NotebookWrite[FrontEnd`InputNotebook[], "}", Before] }] ], ...



Top 50 recent answers are included