Solution (source code)

= Solution

The curve has <good reduction> at five and seven: its <discriminant> is $-432D^2$, and the hypotheses make $D$ a <unit in a ring>[unit] at those <prime numbers>[primes]. Over $\mathbb F_5$ the cubing map is a bijection, so
$$
\#E(\mathbb F_5)=1+\sum_{x\in\mathbb F_5}(1+\chi(x^3+D))=6.
$$
The character sum vanishes after replacing $x^3+D$ by a variable ranging over the whole <field>. Over $\mathbb F_7$, where $D=2$, the possible cubes are zero once, one three times, and minus one three times. The corresponding right sides are two, three and one. Two and one are nonzero squares while three is not, so the count is $1+2+0+6=9$.

<torsion subgroup>[Rational torsion] injects into the reduction group at a good odd <prime number>[prime], a standard reduction theorem. Thus its order divides $\gcd(6,9)=3$. If a point of order three existed, its coordinates would be integral by the <Nagell–Lutz theorem>. Since $2P=-P$, the <elliptic curve group law>[duplication formula] gives
$$
\frac{9x^4}{4y^2}-2x=x,\qquad3x(x^3+4D)=0.
$$
Thus either $x=0$ and $y^2=D$, or $x^3=-4D$ and $y^2=-3D$.

At the <prime number>[prime] in the hypothesis, $D$ is a nonsquare <unit in a ring>[unit]. Since $p\equiv1\pmod3$, there is a nontrivial cube <root of unity> $\zeta\in\mathbb F_p$, and $(2\zeta+1)^2=-3$. Hence $-3$ is a nonzero square, so both $D$ and $-3D$ are nonsquares. Neither ordinate equation is possible even modulo $p$. There is no <rational point> of order three, proving
$$
\boxed{E(\mathbb Q)_{\mathrm{tors}}=\{\mathbf o\}.}
$$