Programming Challenges! - Page 8 - Overclock.net - An Overclocking Community
Forum Jump: 

Programming Challenges!

Reply
 
Thread Tools
post #71 of 99 (permalink) Old 12-10-2008, 03:46 PM
New to Overclock.net
 
Join Date: Nov 2006
Location: Detroit
Posts: 1,984
Rep: 82 (Unique: 72)
any new challenges on the way?

Arctic TT Armor Work Log
e6300 100% OC 1.49v 532mhz FSB - Crucial Ballistix 1:1 4-4-4-8
Quote:
I never had imaginary friends as a kid, i played with Carlton's
-Hillary Banks, Fresh Prince of Bel Air
im_not_an_artard is offline  
Sponsored Links
Advertisement
 
post #72 of 99 (permalink) Old 12-10-2008, 03:55 PM - Thread Starter
Retired Staff
 
Join Date: Mar 2008
Posts: 11,951
Rep: 726 (Unique: 481)
Quote:
Originally Posted by im_not_an_artard View Post
any new challenges on the way?
yeah sorry...been a hectic week for me, I've been slacking on all my homework and projects this semester and now I'm cramming everything into the last week

Manyak is offline  
post #73 of 99 (permalink) Old 12-12-2008, 02:14 AM
New to Overclock.net
 
metala's Avatar
 
Join Date: Aug 2006
Location: Blagoevgrad, Bulgaria
Posts: 1,198
Rep: 48 (Unique: 43)
Quote:
Originally Posted by error10 View Post
Me either. I just use OpenSSL and call it a day.
http://gmplib.org/32vs64.html
Quote:
As you can see, GMP is much faster than OpenSSL. That's no news, and it's not the main point with these diagrams.
That's why I used GMP in my 2 RSA programs.

Quote:
Originally Posted by BiG O View Post
I dealt with all those encryption shenanigans in a Discrete Mathematics class I took. I have no interest in dealing with them again haha. I'd like to see the code if someone does it though. Should be interesting.
I already did it. I think...
https://www.overclock.net/coding-prog...ml#post4939421
https://www.overclock.net/coding-prog...ml#post4964608

"Alcohol is not the answer."
Milk is not the answer either, but nobody mentions it.

Gentoo worshipper, xterm is man's best friend.

metala is offline  
Sponsored Links
Advertisement
 
post #74 of 99 (permalink) Old 12-14-2008, 05:28 AM
New to Overclock.net
 
Join Date: Jun 2006
Location: Sweden
Posts: 5,315
Rep: 646 (Unique: 379)
Guys, How do you calculate 545^503 in C++?

Please ignor my spelling and grammar!
FAQ:s


I reject your reality and substitute my own. -Adam Savage


i_ame_killer_2 is offline  
post #75 of 99 (permalink) Old 12-14-2008, 05:44 AM - Thread Starter
Retired Staff
 
Join Date: Mar 2008
Posts: 11,951
Rep: 726 (Unique: 481)
Quote:
Originally Posted by i_ame_killer_2 View Post
Guys, How do you calculate 545^503 in C++?
Code:
#include <math.h>

pow(545, 503);

Manyak is offline  
post #76 of 99 (permalink) Old 12-14-2008, 05:59 AM
New to Overclock.net
 
Join Date: Jun 2006
Location: Sweden
Posts: 5,315
Rep: 646 (Unique: 379)
Quote:
Originally Posted by Manyak View Post
Code:
#include <math.h>

pow(545, 503);
....That wont work...

Please ignor my spelling and grammar!
FAQ:s


I reject your reality and substitute my own. -Adam Savage


i_ame_killer_2 is offline  
post #77 of 99 (permalink) Old 12-14-2008, 06:01 AM - Thread Starter
Retired Staff
 
Join Date: Mar 2008
Posts: 11,951
Rep: 726 (Unique: 481)
Then try

#include <cmath>

Manyak is offline  
post #78 of 99 (permalink) Old 12-14-2008, 06:04 AM
New to Overclock.net
 
Join Date: Jun 2006
Location: Sweden
Posts: 5,315
Rep: 646 (Unique: 379)
Quote:
Originally Posted by Manyak View Post
Then try

#include <cmath>


The problem is that the number is to big.

And no, __int64 cant hold the value.

Please ignor my spelling and grammar!
FAQ:s


I reject your reality and substitute my own. -Adam Savage


i_ame_killer_2 is offline  
post #79 of 99 (permalink) Old 12-14-2008, 06:14 AM - Thread Starter
Retired Staff
 
Join Date: Mar 2008
Posts: 11,951
Rep: 726 (Unique: 481)
Oh, lol.

First try using unsigned __int64, and if that's still not big enough then use a 'bignum' compatible library, like this one.

Manyak is offline  
post #80 of 99 (permalink) Old 12-17-2008, 02:47 AM
New to Overclock.net
 
metala's Avatar
 
Join Date: Aug 2006
Location: Blagoevgrad, Bulgaria
Posts: 1,198
Rep: 48 (Unique: 43)
Quote:
Originally Posted by i_ame_killer_2 View Post


The problem is that the number is to big.

And no, __int64 cant hold the value.
Why would you need to hold such a value?

"Alcohol is not the answer."
Milk is not the answer either, but nobody mentions it.

Gentoo worshipper, xterm is man's best friend.

metala is offline  
Reply

Quick Reply
Message:
Options

Register Now

In order to be able to post messages on the Overclock.net - An Overclocking Community forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.
User Name:
If you do not want to register, fill this field only and the name will be used as user name for your post.
Password
Please enter a password for your user account. Note that passwords are case-sensitive.
Password:
Confirm Password:
Email Address
Please enter a valid email address for yourself.
Email Address:

Log-in



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page


Forum Jump: 

Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off