[ 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: 62 KB, 529x480, 1311297477151.jpg [View same] [iqdb] [saucenao] [google]
3450656 No.3450656 [Reply] [Original]

find all primes of the form n^n+1 , which are less than 10^19

most engineers can't solve this

>> No.3450669

I lob being able to computer stuff with computers.

>> No.3450661
File: 37 KB, 250x250, 11.jpg [View same] [iqdb] [saucenao] [google]
3450661

>> No.3450682

2, 5, 257, ...

Everyone on /sci/ should be able to finish the sequence.

>> No.3450703

>>3450682
>hurr guess check durr

can you prove it faggot

>> No.3450722

...how can anything to the power of anything (other than 1) be prime

>> No.3450730

>>3450722
Thread ruined, good job faggot.

>> No.3450753

>>3450722
>n^n+1
>n^n + 1
> + 1

>> No.3451116

>>3450722

n^n + 1

2^2 + 1
4 + 1
5

>> No.3451149

n odd: n^n odd, then n^n+ 1 even.
n must be even. if n is prime, then n=2. done
if n isn't limited to prime, shit nigga, is you serious, there are shit load. n=4, 6,10, etc.

oh btw, fuck you, me engineer.

>> No.3451170

2, 5, and 257 are the only ones.

>> No.3451181

math major here but the only upper level math class ive taken was abstract algebra II (covered rings and fields) - should i feel bad that i cant solve this?

>> No.3451187

>not brute forcing it with programming

>> No.3451470

prove it with programming, bitch

>> No.3451501

>>3451149
There are more even numbers than just 2, fucktard.
And one thing you guys don't seem to understand is that there's no definitive algorithm that anybody's discovered as of yet that can automatically find any prime number.
Really, prime numbers seem more to sprout about like weeds within the continuum of natural numbers. But regardless of this, they always display certain characteristics.
So unless one of you have found some kind of master algorithm to automatically find any prime, why don't you keep quiet.
College math teacher speaking here.

>> No.3451596

>>3451501

did you even read, right. I only prove n must be even number, and if n has to be a prime number, then n =2. Then I said in case n isn't limited to be prime itself, then n=4 is the next one, n=6 might be since i don't know for sure, it get too big too fast and using hand factorization is not my idea of spending my time. There is no simple prime-factorization method, if I know of one, I'd go into cryptography or some financial stuff. Seeing n=10 already up to 10^10, n max is 14, since anything more will exceed 10^19. But still number is big.

If you are the OP, and swore at me, well, you need to word your question better. If you are not, and called me a fucktard, yeah thank faggot.

>> No.3451606

This shit is easy. I just pay a math student $50 to solve it for me. Done.

Engineers for the win.

>> No.3453311

Can use a basic prime test.... i forget its name

for Prime P / Co-prime C::
<span class="math">
C ^ (P -1) mod P = 1
[/spoiler]
Gets caught out with Carmichael (? spelling) Numbers though

>> No.3453330

Primes have to do with the first incidences of prime combinatrics. Someone made a visual pattern on physicforum.com

>> No.3453333

>>3450656
There are none since you still end up with n*n*n*n*n... ?

>> No.3453357

>>3453333
>+1

>> No.3453369

by n=10 n^n = 10000000000 (+1)
So there's not many to test actually? =)

1 * 10^19 primality test is meh

>> No.3454310

cmd
http www.google.com/search?q=list+of+primes+under+10+to+the+power+of+19

DONE

>> No.3454328

>>3450656
>Find primes
>Implying mathematics can do this even now

>> No.3454341

$perl -e 'for ($n=1;;$n++){ $s=$n**$n+1; last if $s>10**19; $p=1; for $i (2..sqrt($s)){if ($s%$i==0){$p=0; print "f($n) = $s = $i * ".($s/$i)."\n"; last}} print "f($n) = $s = prime\n" if $p;}'
f(1) = 2 = prime
f(2) = 5 = prime
f(3) = 28 = 2 * 14
f(4) = 257 = prime
f(5) = 3126 = 2 * 1563
f(6) = 46657 = 13 * 3589
f(7) = 823544 = 2 * 411772
f(8) = 16777217 = 97 * 172961
f(9) = 387420490 = 2 * 193710245
f(10) = 10000000001 = 101 * 99009901
f(11) = 285311670612 = 2 * 142655835306
f(12) = 8916100448257 = 89 * 100180903913
f(13) = 302875106592254 = 2 * 151437553296127
f(14) = 11112006825558017 = 29 * 383172649157173
f(15) = 437893890380859376 = 2 * 218946945190429688

>> No.3455756
File: 42 KB, 272x267, 1309705096565.jpg [View same] [iqdb] [saucenao] [google]
3455756

>>3454341

>that perl code
It's beautiful.

>> No.3455791
File: 14 KB, 539x244, sshot_2011-07-26_23:48:04.png [View same] [iqdb] [saucenao] [google]
3455791

>> No.3455826

I would think engineers are exactly the type of people who can solve 'easy to set up' algorithmic problems of this kind.

>> No.3455852
File: 1.28 MB, 3500x2333, mfwkneiflarv.jpg [View same] [iqdb] [saucenao] [google]
3455852

>>3455791
what is this Python?

>> No.3455858
File: 568 KB, 2000x3000, mfweis.jpg [View same] [iqdb] [saucenao] [google]
3455858

(I'm missing a "," before Python and being sarcastic here, btw.)

>> No.3455860
File: 11 KB, 447x170, sshot_2011-07-27_00:04:57.png [View same] [iqdb] [saucenao] [google]
3455860

>>3455852
Mathematica. With fucked up auto-indention, man the frontend sucks sometimes. (Manual indention doesn't carry on the current line indention so you have to add the tabs manually every fucking line. Grraaah)

>> No.3455865

>>3455852
mathematica i think. Python is pretty shit at doing math, even with numpy

>> No.3455868
File: 89 KB, 445x445, 1301458373409.jpg [View same] [iqdb] [saucenao] [google]
3455868

>>3455852
>2011
>not knowing python

ishygddt

>> No.3455897

>>3455852
>>3455858
what's her name again guys?

>> No.3455906

>>3455897
Lepra.

>> No.3455926
File: 530 KB, 2124x2900, cutey_Emma_yousrs.jpg [View same] [iqdb] [saucenao] [google]
3455926

>>3455906
I don't speak your crazy language

>> No.3455961

>>3455926
bet you can't speak any other "crazy" language than english, ameritard

>> No.3455978
File: 70 KB, 500x436, cutey_Fainting4Emma.jpg [View same] [iqdb] [saucenao] [google]
3455978

>>3455961
>2011
why would I need to speak another language?
lol.

>> No.3455988

>>3455906
srs guiz need to fap. name?

>> No.3455994

>>3455988
>2011
>fapping to an ugly bitch

ishygddt

>>>/cm/

>> No.3455998
File: 28 KB, 384x384, 1302727271634.jpg [View same] [iqdb] [saucenao] [google]
3455998

>>3455988
Lena Meyer Landrut.
have a nice one.

>> No.3456018
File: 863 KB, 3045x2300, 1289261377294.jpg [View same] [iqdb] [saucenao] [google]
3456018

>>3455998
thanks.
but actually that's not who I thought it was.
There was this girl posted on /sci/ a while back she looked kinda like her and she's a mathematician, was a link to a youtube of her at some university.
any ideas?

>> No.3456133
File: 260 KB, 395x385, hey.png [View same] [iqdb] [saucenao] [google]
3456133

It's okay guise I'm working on it. Bruteforce.
Don't know how long it will take.

5 = 2 * 2 + 1
17 = 4 * 4 + 1
37 = 6 * 6 + 1
101 = 10 * 10 + 1
197 = 14 * 14 + 1
257 = 16 * 16 + 1
401 = 20 * 20 + 1
577 = 24 * 24 + 1
677 = 26 * 26 + 1
1297 = 36 * 36 + 1
1601 = 40 * 40 + 1
2917 = 54 * 54 + 1
3137 = 56 * 56 + 1
4357 = 66 * 66 + 1
5477 = 74 * 74 + 1
7057 = 84 * 84 + 1
8101 = 90 * 90 + 1
8837 = 94 * 94 + 1
12101 = 110 * 110 + 1
13457 = 116 * 116 + 1
14401 = 120 * 120 + 1
15377 = 124 * 124 + 1
15877 = 126 * 126 + 1
16901 = 130 * 130 + 1
17957 = 134 * 134 + 1

>> No.3456139

>>3456133

Can't tell if trolling or very stupid.