mersenneforum.org  

Go Back   mersenneforum.org > Search Forums

Showing results 1 to 20 of 20
Search took 0.01 seconds.
Search: Posts Made By: Mathsgirl
Forum: Information & Answers 2014-12-10, 16:25
Replies: 23
Views: 3,875
Posted By Mathsgirl
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
Posted By Mathsgirl
Talking so my code to find mersenne primes (not this code...

so my code to find mersenne primes (not this code I am showing you now!) finds the M_p and the corresponding p and returns a separate list of both. If I were to iterate through the list of p and use...
Forum: Information & Answers 2014-12-10, 00:50
Replies: 23
Views: 3,875
Posted By Mathsgirl
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
Posted By Mathsgirl
@minigeek! thank you, my computer science friend...

@minigeek! thank you, my computer science friend sent me this code (passing the blame on her) and she commented it wrong, which is why I was getting confused. thank you
Forum: Information & Answers 2014-12-09, 23:49
Replies: 23
Views: 3,875
Posted By Mathsgirl
Angry but it also said 11 wasn't prime, so just forget...

but it also said 11 wasn't prime, so just forget about all these posts... just ignore me
Forum: Information & Answers 2014-12-09, 23:47
Replies: 23
Views: 3,875
Posted By Mathsgirl
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
Posted By Mathsgirl
ok! I know why I've f***ed up now, I just blindly...

ok! I know why I've f***ed up now, I just blindly assumed that p was the mersenne we were checking, without even checking the code properly... ok thank you!
Forum: Information & Answers 2014-12-09, 23:43
Replies: 23
Views: 3,875
Posted By Mathsgirl
even though p obviously shouldn't be 8191 if I am...

even though p obviously shouldn't be 8191 if I am checking 8191 is prime. Any ideas for a better code (and one that actually works!) for the LL test?
Forum: Information & Answers 2014-12-09, 23:41
Replies: 23
Views: 3,875
Posted By Mathsgirl
Unhappy I am using p = 8191. I got the pseudocode from...

I am using p = 8191. I got the pseudocode from Wikipedia, here it is:

Lucas–Lehmer(p)
var s = 4
var M = 2p − 1
repeat p − 2 times:
s = ((s × s) − 2) mod M
if s = 0...
Forum: Information & Answers 2014-12-09, 23:21
Replies: 23
Views: 3,875
Posted By Mathsgirl
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
Posted By Mathsgirl
Unhappy 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
Posted By Mathsgirl
as a woman, I would be more willing to help a...

as a woman, I would be more willing to help a man! we're all human ;)
Forum: Homework Help 2014-12-09, 19:31
Replies: 71
Views: 13,623
Posted By Mathsgirl
Talking I've been reading all the messages! and they have...

I've been reading all the messages! and they have all been really helpful. I have to get this project done by Thursday and I am writing about the Lucas-Lehmer test now. Basically I have coded how to...
Forum: Homework Help 2014-12-07, 20:39
Replies: 71
Views: 13,623
Posted By Mathsgirl
Wink 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
Posted By Mathsgirl
Talking ok! I ditched doing perfect numbers because they...

ok! I ditched doing perfect numbers because they didn't have any real purpose, then chose Mersenne primes ...

Anyway, I guess I will just talk about them and perfect numbers, I don't need to...
Forum: Homework Help 2014-12-07, 19:46
Replies: 71
Views: 13,623
Posted By Mathsgirl
@TheMawn, thank you. Ok then, I can obviously not...

@TheMawn, thank you. Ok then, I can obviously not use the fact that mersenne primes are helpful in security anymore, so thank you everyone for helping me avoid that horrible mistake. but what should...
Forum: Homework Help 2014-12-07, 19:36
Replies: 71
Views: 13,623
Posted By Mathsgirl
Cool @R.D silverman, I am now finding it hard to write...

@R.D silverman, I am now finding it hard to write anything about these stupid Mersenne primes! give me something they are good for! I have coded an algorithm that finds Mersenne primes up to and...
Forum: Homework Help 2014-12-07, 18:30
Replies: 71
Views: 13,623
Posted By Mathsgirl
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
Posted By Mathsgirl
I don't think he was being rude, just making a...

I don't think he was being rude, just making a joke! Thank you for all your replies though! absolutely any information is very helpful!
Forum: Homework Help 2014-12-06, 20:52
Replies: 71
Views: 13,623
Posted By Mathsgirl
Wink 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...
Showing results 1 to 20 of 20

 
All times are UTC. The time now is 11:55.


Sat Jul 17 11:55:18 UTC 2021 up 50 days, 9:42, 1 user, load averages: 0.91, 1.18, 1.24

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.