Can You Engineer a Formula for Primes?
Herbert Wilf, What is an answer?
Jeffrey Shallit, No formula for the prime numbers?
That it eats a lot of ram?
Then why ask such a question if you already think you know the answer?
So why is the user written as root for both encoder and avideo in this tutorial?
Could it be because the database was not created for it?
Watch this and maybe you’ll get why https://youtu.be/j5s0h42GfvM
Is there a formula for the nth prime number? One was cleverly engineered in 1964 by C. P. Willans. But it raises the question of what should actually count as a formula.
—————-
References:
Herbert Wilf, What is an answer?, The American Mathematical Monthly 89 (1982) 289-292.
https://doi.org/10.1080/00029890.1982.11995435
C. P. Willans, On formulae for the nth prime number, The Mathematical Gazette 48 (1964) 413-415.
https://doi.org/10.2307/3611701
Further reading:
Jeffrey Shallit, No formula for the prime numbers?.
http://recursed.blogspot.com/2013/01/no-formula-for-prime-numbers.html
—————-
# Python code
import math
def prime(n):
return 1 + sum([
math.floor(pow(n/sum([
math.floor(pow(math.cos(math.pi * (math.factorial(j – 1) + 1)/j), 2))
for j in range(1, i+1)
]), 1/n))
for i in range(1, pow(2, n)+1)
])
—————-
(* Mathematica code *)
prime[n_] := 1 + Sum[Floor[(n/Sum[Floor[Cos[Pi ((j – 1)! + 1)/j]^2], {j, 1, i}])^(1/n)], {i, 1, 2^n}]
—————-
0:00 A formula for primes?
1:24 Engineering a prime detector
4:00 Improving the prime detector
5:46 Counting primes
6:29 Determining the nth prime
9:42 The final step
11:36 What counts as a formula?
12:56 What’s the point?
13:51 Who was Willans?
—————-
Animated with Manim. https://www.manim.community
Thanks to Ken Emmer for supplying the microphone.
Web site: https://ericrowland.github.io
Twitter: https://twitter.com/ericrowland
Well I understood this concept, that wasn’t my question
sudo apt install zram-config
why the sudo?
It’s just getting information from things that should not contain such
Like that formula, it’s dead simple but still works flawlessly for any prime
Like that formula, it’s dead simple but still works flawlessly for any prime
Well as long as you have ton of memory and computational power to have that factorial
Well, of course it isn’t
It was likely improved or new ways were found
It was likely improved or new ways were found
Oh ok
Sudo is the recommended command to give you ‘full’ access to the system during the particular install, there’s other commands that do similar on various ‘nix based OS.
No no no no no
Well you are the one who started trolling with zram and “sudo apt”…

So why is the user written as root for both encoder and avideo in this tutorial?
Bad practice. Inexperienced user

Run fsck -y
It workd finallllllly

Bad practice. Inexperienced user

Bad practice. Inexperienced user

Bad practice. Inexperienced user
ok. I typed these commands for Encoder. Why doesn’t Encoder come up when I put it in the browser? If localhost/YouPHPTube-Encoder is typed in the browser, shouldn’t the encoder on the installation page come up? But why does this page appear? This is written in the browser:
localhost/YouPHPTube-Encoder/install/index.php
Could it be because the database was not created for it? I haven’t created the database yet for the encoder

Bad practice. Inexperienced user
I mean this installation page

Used to be the rules channel before the great channel purge of 1959
so the rules are purged

For now the main rule is use common sense
But that doesn’t really exist for 99.9% of the population right now