Today I was trying to compute the value of a function in one point ($f(3594641)$) using Mathematica. The main difficulty it has is that it requires both calculating primorials (product of primes) and integrating them.
At first, when I tried to execute it, I received "RecursionLimit" error, so I added a line to solve it. My problem now is that Mathematica basically does not give me any output. At first, it says "Runing...", but after a couple of minutes, that message disappears without leaving any output.
This is the code:
Primorial[0] := 1;
Primorial[1] := 2;
Primorial[n_] := Primorial[n] = Prime[n] Primorial[n - 1];
ChebyshevTheta[n_] := Log[Primorial[PrimePi[n]]];
Inte1[n_] := Log[n]/Log[n + 1] - Log[n - 1]/Log[n];
Inte2[n_] := Sum[ChebyshevTheta[x]*Inte1[x], {x, 2, n}];
Inte3[n_] := N[Integrate[
y * (-(Log[-1 + y])/(y (Log[y])^2) +
1/((-1 + y) Log[y])),
{y, 2, n}], 15];
$RecursionLimit = 10^12;
N[(Inte2[3594641] - Inte3[3594641]), 15]
Any help?
Thank you very much