User:Roni1956/sandbox

What is prime numbers
prime numbers is numbers that can't be divided by any numbers without a trace except from 1 and itself.

for example 23: it can't be divided without a trace by 2, 3, 4...22.

formula
here is a formula:

$$f(x)=(sin($$$\pi$($$x+\frac{1}{2}))+3)$${$$\lfloor\frac{1}{2}+\frac{x-8}{8}\rfloor\cdot8+8:1, 0$$}

$$g(x)=(2sin($$π($$x-\frac{1}{2}))+4)$${$$\lfloor\frac{1}{2}+\frac{x+3}{8}\rfloor\cdot8-5:1, 0$$}

$$h(x)=(-sin($$π($$-x+\frac{1}{2}))+3)$${$$3\le x\le8:1, 0$$}

$$j(x)=1$${$$0.9\le x\le1.1:1, 0$$}

$$i(x)=2$${$$1.9\le x\le 2.1:1, 0$$}

$$\sum_{n=0}^bf(n)+g(n)+h(n)+j(n)+i(n)$$

$$b$$ is what index of prime numbers you want to see

with this 4 functions you can use desmos

every function is part of a big function and with the sum you combining all of the functions together by plus sigh. this {} is used to make piecewise functions and the floor with fraction is round to make pause and resume function(i used it on scratch).

as you can see that first 2 functions having ":1, 0" it means that you making statement if it resumed it continues if not function becomes 0. if there wasn't any statement, you coudn't combine them because if they paused they don't become 0 the become undefined.