aspose file tools*
The moose likes Other Languages and the fly likes Anyone familiar with Scheme? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Other Languages
Bookmark "Anyone familiar with Scheme?" Watch "Anyone familiar with Scheme?" New topic
Author

Anyone familiar with Scheme?

Jon Richards
Greenhorn

Joined: Oct 05, 2012
Posts: 10
I have a super easy question... I'm working on a program to determine whether very large numbers (100 digits or more) are prime. The method I've coded here isn't 100% accurate, but it's a lot faster than something that would be more accurate so I'm ok with it. I know it's a little messy right now, but my issue is the "modulo" evaluation on line 43 doesn't actually evaluate. When I debug, it goes through the line and appears to do the calculation, but it merrily finishes out the loop, giving me a "prime number" every time. Anyone have any ideas?

(also, I realize I tagged this as Java code so it highlighted some weird stuff, but when I tagged it as "scheme" or "lisp" I lost all the cool formatting.)

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Anyone familiar with Scheme?
 
Similar Threads
Can't figure out what's wrong with this method
factors: i hate math
project euler
how many project Euler problems have you solved?
Help - boolean