Forum: Information & Answers
2014-12-10, 16:25
|
|
Replies: 23
Views: 3,875
well if you say
for p in range(1, 1000): ...
well if you say
for p in range(1, 1000):
LucasLehmertest(p)
# the test I showed everyone earlier
it returns all the correct Mersenne primes, with corresponding primes in the range(1, 1000)....
|
Forum: Information & Answers
2014-12-10, 09:31
|
|
Replies: 23
Views: 3,875
|
Forum: Information & Answers
2014-12-10, 00:50
|
|
Replies: 23
Views: 3,875
I will look into how to write a better one...
I will look into how to write a better one tomorrow then, I really I hope I can get it all done by thrusday! in python, if you put the range(1, n) it actually goes, from 1 to (n-1). So I think my...
|
Forum: Information & Answers
2014-12-09, 23:52
|
|
Replies: 23
Views: 3,875
|
Forum: Information & Answers
2014-12-09, 23:49
|
|
Replies: 23
Views: 3,875
|
Forum: Information & Answers
2014-12-09, 23:47
|
|
Replies: 23
Views: 3,875
butttttttttttttttttttttttttttttttttttttt... if...
butttttttttttttttttttttttttttttttttttttt... if you say for i in range(1, 100): this tells you all the numbers from 1, 100 whether they are prime or not
so if I let p = 8191, it should still tell me...
|
Forum: Information & Answers
2014-12-09, 23:45
|
|
Replies: 23
Views: 3,875
|
Forum: Information & Answers
2014-12-09, 23:43
|
|
Replies: 23
Views: 3,875
|
Forum: Information & Answers
2014-12-09, 23:41
|
|
Replies: 23
Views: 3,875
|
Forum: Information & Answers
2014-12-09, 23:21
|
|
Replies: 23
Views: 3,875
Do either of you know how to code? for a maths...
Do either of you know how to code? for a maths degree you have to take a computing module, so I am very basic at coding. Do you know why this code isn't returning true for 8191?
def isPrime(p):
...
|
Forum: Information & Answers
2014-12-09, 22:46
|
|
Replies: 23
Views: 3,875
Lucas-Lehmer test
Hey all! I am doing a project for my computing module, and I am writing about Mersenne primes. I was hoping people would give me info on the lucas-lehmer test! such as, why it is the reason (or part...
|
Forum: Homework Help
2014-12-09, 19:34
|
|
Replies: 71
Views: 13,623
|
Forum: Homework Help
2014-12-09, 19:31
|
|
Replies: 71
Views: 13,623
|
Forum: Homework Help
2014-12-07, 20:39
|
|
Replies: 71
Views: 13,623
Not at all! I think it would be a good idea for...
Not at all! I think it would be a good idea for me to write about how the largest primes are Mersenne primes. I don't who told me about primes and super computers, but obviously they were talking a...
|
Forum: Homework Help
2014-12-07, 20:07
|
|
Replies: 71
Views: 13,623
|
Forum: Homework Help
2014-12-07, 19:46
|
|
Replies: 71
Views: 13,623
|
Forum: Homework Help
2014-12-07, 19:36
|
|
Replies: 71
Views: 13,623
|
Forum: Homework Help
2014-12-07, 18:30
|
|
Replies: 71
Views: 13,623
thank you @TheMawn, very, very helpful! and you...
thank you @TheMawn, very, very helpful! and you did well to read between the lines of my unclear question! I just heard that very large primes are very useful in security, so as mersenne primes are...
|
Forum: Homework Help
2014-12-07, 18:26
|
|
Replies: 71
Views: 13,623
|
Forum: Homework Help
2014-12-06, 20:52
|
|
Replies: 71
Views: 13,623
Mersenne primes project
Hi! I am doing a computing project on Mersenne primes and I am looking for some information and websites that will help with understanding what they are, and how significant they are. Can someone...
|