We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide
Christmas lectures last night.
stevemcol
Posts: 1,666 Forumite
in Techie Stuff
Anyone else running the prime number finder??
Apparently I'm 10 years old on MSE. Happy birthday to me...etc
0
Comments
-
Dam, I forgot that was on.
We wrote/ran a prime number finder on a Pentium PRO 200 when it was new about 12 years ago. Also wrote/ran a program to find pi to a really high decimal point.
The things you do when you are a bored geek teenager
Windows is the path to the darkside...Windows leads to Blue Screen. Blue Screen leads to downtime. Downtime leads to suffering...I sense much Windows in you.0 -
I always forget when these are on :mad:
Channel Five 19:15-20:00
I'll miss tonights as well
anyone know if they will be repeated. 0 -
I had a weird idea once. My "geeky" C background meant I was inspired to write a large prime number generator in PHP in order to implement the Diffie-Hellman key agreement protocol. This works best with very large prime numbers. The aim was to secure and encrypt PHP scripts using nothing but PHP across insecure and stateless http connections.
Then I got a job, and never had time to finish it. Ah well.
Anyway... was the prog good?0 -
nfg
In last night's lecture, there was a reference to the importance of large prime numbers in cryptography.
Have a look here http://www.rigb.org/christmaslectures06/pdf/0_3_1.pdf for a bit of fun and maybe lend them some processor time!Apparently I'm 10 years old on MSE. Happy birthday to me...etc0 -
newfoundglory wrote:I had a weird idea once. My "geeky" C background meant I was inspired to write a large prime number generator in PHP in order to implement the Diffie-Hellman key agreement protocol. This works best with very large prime numbers. The aim was to secure and encrypt PHP scripts using nothing but PHP across insecure and stateless http connections.
Then I got a job, and never had time to finish it. Ah well.
Sure it would have been better to write the prime number generator in C as a module for PHP, it would probably give you a 300% speed boost against unoptimised PHP4 based code.Windows is the path to the darkside...Windows leads to Blue Screen. Blue Screen leads to downtime. Downtime leads to suffering...I sense much Windows in you.0 -
Cheers.... check this out:
Lecture 4 The case of the uncrackable code
Broadcast 28th December 2006
7.15pm five
From the Caesar Cipher to the Da Vinci Code, people have been fascinated by secret messages. The mathematics of codes lets us to do everything from photographing the surface of Mars to shopping securely on eBay. Find out how prime numbers are now the key to codes which protect credit cards from internet hackers, and how, in the digital age, i-pods and digital TV are just a load of 0s and 1s.
^^ one to watch!0 -
You would think so wouldnt you? It would definitely be faster - but imagine the headache you create for yourself. It becomes very unportable unless its written correctly.A-Wing wrote:Sure it would have been better to write the prime number generator in C as a module for PHP, it would probably give you a 300% speed boost against unoptimised PHP4 based code.
C by its very nature is a very portable lanaguge across platforms. You would still have to compile the module for every platform you want to use it on. But the very nature of the module - the fact its dealing with very large numbers - you have to start constructing abstract data structures to handle them. Intel, PowerPC, SPARC, Itanium.... 32 and 64-bit.
Do-able, but more complex for true platform independence. Probably not worth it unless you need to generate a huge number of primes.0 -
for anyone interested last nights is on the newsgroups a.b.doc...0
-
I was looking forward to the first Christmas Lecture and recorded it -- but I just had to turn it off because of the intense patronising of the lecturer. Surely it isn't necessary to have an explosion every time he wanted to make a point?
John0 -
newfoundglory wrote:You would think so wouldnt you? It would definitely be faster - but imagine the headache you create for yourself. It becomes very unportable unless its written correctly.
C by its very nature is a very portable lanaguge across platforms. You would still have to compile the module for every platform you want to use it on. But the very nature of the module - the fact its dealing with very large numbers - you have to start constructing abstract data structures to handle them. Intel, PowerPC, SPARC, Itanium.... 32 and 64-bit.
Do-able, but more complex for true platform independence. Probably not worth it unless you need to generate a huge number of primes.
Ah, indeed, sorry I was assuming you were creating for a unique implementation. But then if you were interested in optimisation for that kind of unique task you would probably use an optimised dedicated math processor anyway.Windows is the path to the darkside...Windows leads to Blue Screen. Blue Screen leads to downtime. Downtime leads to suffering...I sense much Windows in you.0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 353.6K Banking & Borrowing
- 254.2K Reduce Debt & Boost Income
- 455.1K Spending & Discounts
- 246.6K Work, Benefits & Business
- 603K Mortgages, Homes & Bills
- 178.1K Life & Family
- 260.7K Travel & Transport
- 1.5M Hobbies & Leisure
- 16K Discuss & Feedback
- 37.7K Read-Only Boards
