[gambit-list] Crash with newly found largest prime number
Alex Silva
asandroq at gmail.com
Mon Jan 25 03:58:42 EST 2016
Hallo,
The following program works fine when interpreted, but crashes when
compiled:
```
(declare
(block)
(standard-bindings)
(extended-bindings))
(define (calculate-largest-prime)
(- (expt 2 74207281) 1))
(define *largest-prime* (time (calculate-largest-prime)))
(define *prime-string* (time (number->string *largest-prime*)))
(time (println *prime-string*))
```
Gambit 4.8.3, GCC 5.3.0, Ubuntu 14.04
--
-alex
http://unendli.ch/
More information about the Gambit-list
mailing list