Project

General

Profile

Actions

Feature #7783

closed

Add support for sqrt of very large numbers

Added by spastorino (Santiago Pastorino) about 11 years ago. Updated about 11 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:51849]

Description

Currently ...

irb(main):001:0> Math.sqrt(2**6456)
=> Infinity

I wanted to do something like this to show an example of how RSA could break RSA the public modulus N is generated incorrectly.

In Python you can do it using http://code.google.com/p/gmpy/
The issue is also described here http://webcache.googleusercontent.com/search?q=cache:on5z4JS3iUcJ:stackoverflow.com/questions/8226087/how-do-i-get-math-sqrt-to-return-a-bignum-and-not-a-float+&cd=3&hl=en&ct=clnk

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0