[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math


View post   

File: 402 KB, 965x806, daddadf.jpg [View same] [iqdb] [saucenao] [google]
6773906 No.6773906 [Reply] [Original]

ITT we write a mathematical rule for all primes

>> No.6773928

>>6773906
Not divisible by 4302.
Find one that is.
>protip: you can't.

>> No.6773934

>>6773928
4302 is not prime and all primes after 2 are odd so obviously that does not work.
im talking about a formula to discover all primes

>> No.6773938

>>6773934
>so obviously that does not work.
Stop the fucking presses.

>discover all primes
What more do you need than what already is?
You already know how to find them.

>> No.6773939

Well for starters we know any number can be written as the sum of two prime numbers, so that since we know there are infinite numbers there are twice as many infinitely many primes

>> No.6773943

>>6773939
you are useing one conjecture to validate another
we are looking for a way to discover primes

>> No.6773951
File: 913 KB, 3872x2592, crayx1.jpg [View same] [iqdb] [saucenao] [google]
6773951

>>6773943
>crunch 'em

>> No.6773964

>>6773951
a way to calculate them is what im looking for, there must be a way

>> No.6773966

>>6773964
There is.
>take arbitrary number
>test it for being prime

>> No.6773969
File: 965 KB, 321x388, 1409930442031.gif [View same] [iqdb] [saucenao] [google]
6773969

>>6773939
>infinity * 2
heh

>> No.6773977

>>6773906
>a way to calculate them is what im looking for, there must be a way

There is an explicit formula for the prime-counting function, a fact surprisingly few people know. It is:

<span class="math">\pi(n) = \sum_{j=2}^n \lfloor \frac{(j-1)!+1}{j}-\lfloor \frac{(j-1)!}{j} \rfloor \rfloor[/spoiler]

>> No.6774028

>>6773977
>prime-counting function <span class="math">\pi (n)[/spoiler]

No, OP's looking for the prime number function <span class="math">p_n[/spoiler].

http://mathworld.wolfram.com/PrimeFormulas.html

Similar formulas for this function do exist, but as the article states, a basic Sieve would work much better (though in order to calculate ALL the primes, the sieve would be infinite, ie, computationally impossible; for this purpose a "guess and check" algorithm would work better, as others have mentioned).

>> No.6774040

>>6773906
they're not divisible by any natural number between 1 and themselves

is that a good rule that I just came up with

>> No.6774049

Every odd number is prime.

1 is prime, 3 is prime, 5 is prime, 7 is prime, etc

>> No.6774073

>>6773906
Only rayquaza is prime.

>> No.6774490
File: 704 KB, 202x170, constanza.gif [View same] [iqdb] [saucenao] [google]
6774490

>>6774049
>1 is prime

>> No.6774507

>>6774040

winner

>> No.6774514

>>6774490
That's your only objection?

>> No.6774524

>>6774049
That's bullshit, what about 11?

>> No.6774525
File: 9 KB, 267x181, suicidefrog.jpg [View same] [iqdb] [saucenao] [google]
6774525

>you will never stick a prime number up your ass

>> No.6774526

>>6774524
Prime.

>> No.6774527

>>6774524
11's even more prime than 9
9 is less prime, but still relatively more prime than 13

>> No.6774529

>>6774526
Oh my god, it works!

>> No.6774531

>>6774525
I've got a prime dick.
:^)

>> No.6774534

>>6774049
>1
Prime
>3
Prime

All odd numbers are prime.
>Proved by induction

>> No.6774583

Not sure if troll thread, but anyway read:
http://en.wikipedia.org/wiki/Goldbach%27s_conjecture
If you can figure out a formula for the primes then you can probably prove this.
If you, yes specifically you, could figure out the formula then there wouldn`t be a reward of nobel prize for this problem...

>> No.6774591
File: 469 KB, 1024x566, drink until pain is too drunk to hurt.png [View same] [iqdb] [saucenao] [google]
6774591

>>6774534
please stop oh god

>> No.6774592

>>6774049
Perhaps you meant to say that all primes are odd numbers? I'm certain that twenty-one is not a prime number, yet it is an odd number,

>> No.6774615

I asked one of my professors if matrices had a defined property similar to the primality of numbers. All I got from him was a "no", but I don't think I conveyed exactly what I meant (maybe he thought I was asking if a matrix can be a prime number). Does a question like this even make sense? Can there be "prime" factors for a set of matrices?

>> No.6774637

>>6774529
Uh... are you trolling? According to his rule 17 and 19 would be prime.

>> No.6774642

>>6774637
>17
>19
>not prime
I don't know who's jewing who anymore.

>> No.6774648

>>6774637
17 IS prime, what's your point?

>> No.6774653

>>6774642
Oh, duh, those are prime. Can't believe I missed that.
I guess his rule is correct after all.

>> No.6774654
File: 65 KB, 206x220, triky frog men.png [View same] [iqdb] [saucenao] [google]
6774654

>>6774637
>>6774642
>>6774648

>> No.6774661

>>6774049
>>6774534

omg these guys are being sarcastic... so stop taking them seriously, and also stop taking the people who are taking them seriously sarcastically, because that's just as retarded

>>6774490
and you're a dumb fuck. he said all odds are prime and you pick out "1 is prime"?

>> No.6774665

>>6774661
edit:

who are sarcastically taking the sarcastic people serious

>> No.6774669

>>6773928
Why 4302?

>> No.6774682

>>6773977
Is there a name for this formula? Where can I find a proof?

>> No.6774689

>>6774615
You can consider the ring of n x n matrices, and then consider the matrices that generate principal prime ideals, if any exist.

>> No.6774694

2^2^n + 1

>> No.6774971
File: 41 KB, 279x261, 1408586584802.png [View same] [iqdb] [saucenao] [google]
6774971

>>6774694

>> No.6774972

>>6773938
You already know how to find them.

6/10 made me reply

>> No.6775017

>>6774615
http://mathoverflow.net/questions/26117/prime-undecomposable-matrices

Your professor is sort of right but not being very helpful. On matricies in general no but under some restricted matricies yes.

>> No.6775028

>>6774682
Fairly basic using Wilson's theorem

>> No.6775043

is there a recurrence relation for primes? like for fibonacci numbers. can it even exist? like, it's proven that no polinomial can generate all primes

>> No.6775115
File: 443 KB, 1280x1024, bernhad_riemann.png [View same] [iqdb] [saucenao] [google]
6775115

>>6773906
For all X, there exists some Y such that Y > X and Y has no divisors save 1, 0, or itself.

Yawn, trivial.

>> No.6775124

>>6775115
This is so wrong it's painful

>> No.6775152

>>6774049
>what is 9

>> No.6775155

IF a number is divisible by any preceding prime number then it is not a prime number.

>> No.6775223
File: 32 KB, 224x317, kijk.jpg [View same] [iqdb] [saucenao] [google]
6775223

>>6775155

>> No.6775229

2^n - 1

mersenne primes are the best primes

>> No.6775245

t'(p, n) = if n = 1 then true else if p mod n = 0 false else t'(p, n - 1)

t(p) = h(p, p - 1)

n'(p, a) = if a = 0 p - 1 else if t(p) n'(p + 1, a - 1) else n'(p + 1, a)

now the formula to return the nth prime is:

p(n) = n'(2, n)

>> No.6775252

>>6775115
came here to post that image

>> No.6775257

This is trivial to describe algorithmically. Thus mathematics is applied computation.

>> No.6775291

>>6774514
>sqrt(1) * sqrt(1) = 1
not prime m8

>> No.6775483

>>6775257
8/8

>> No.6775519

>>6775152
Even

if 3 X 3 goes into 9, then that's 2 numbers that go into 9, which means it's even because 2 is even

>> No.6775579

>>6775519
The product of any two odd integers is also odd.
Assume n and m are odd integers:
n = 2k + 1, m = 2k + 1
m * n = (2k + 1)(2k + 1)
m * n = 2(2k^2 + 2k) + 1

Let k' represent the expression 2k^2 + 2k
m * n = 2k' + 1

m * n takes on the form 2k' + 1, and is clearly odd.

>> No.6775658

>>6775257
it's only trivial if u don't do the mathematical proof u moran

>> No.6776027

>>6775658
thanks

>> No.6776122

def isPrime(x):
return isPrime(x)

It uses recursion which is a dlsecret computer hack but it works

>> No.6776756

>>6776122
nice

>> No.6777844

>>6774669
Because you touch yourself at night

>> No.6777875

>>6773906
They're all optimal

>> No.6777971

>>6774049
>21

>> No.6779410

>>6773906
It's really easy. AES encryption. Find both d and e keys.
Encrypt something with the e key.
Decrypt it again.
AES only works if d and e are prime.
So if the decryption results in the original string/number you have proven that e and d are primes.

>> No.6779413

>>6776122
>recursion on big primes
>enjoy your heap-stack exploding into a black hole
noob

>> No.6779621
File: 21 KB, 519x362, nixon.jpg [View same] [iqdb] [saucenao] [google]
6779621

Consider the natural numbers N = {1, 2, 3, ...} equipped with the operation *. The primes are those numbers p in N for which a*b = p with a =/= b in N only has solutions a=1, b=p or a=p and b=1.

To easily generate the primes follow these simple instructions:
>First 2 is a prime, because that's easy to check. Write it down!
>Now list all countably infinite multiples of 2 in order
>When you've done that, move on to the next natural number which is not in the list you just made (hint: it's 3)
>repeat until you have done all the natural numbers
If you followed these instructions correctly, you should have all the prime numbers down. Incredible!

>> No.6779813

>>6773906
p : p is prime

>> No.6780551

>>6773906
Divide by all preceding numbers and see if you get a number between it and 1. You can save time by very obviously more efficient methods but that's for pussies.

>> No.6780582

>>6773928
I'll bet you can't find c in Z s.t. 3c=7 faggot

>> No.6780853

>>6773906
I don't think there exists a rule or algorithm that finds primes, but you can definitely test the primality of a number. If you are asking whether there is an expression that describes all primes, I'm assuming it has something to do with series and sequences, but I don't think it exists either

>> No.6782243

>>6773951
why did they make them look like a 13 year old's gaming pc?

>> No.6782256

Does this shitty algorithm I just contrived have any merit?
If x is prime:
(x)^2 * (x - 1)^2 = New Prime

>> No.6782257

>>6782256
Derp.
(x)^2 + (x - 1)^2 = New Prime

>> No.6782268

>>6782257
x=11

>> No.6782366

>>6774972
not him but you do you have a shitload of sieves made throughout millenia