Given that the set of integers has fractal dimension -1, I would not be surprized that such trigonometry is possible, it would be trigonometry on a manifold of negative dimension. Particularly, the set of prime numbers would play the role of the -12-sphere.