Ticket #430 (closed defect: worksforme)

Opened 2 years ago

Last modified 22 months ago

works only for small integers.

Reported by: olopierpa@… Owned by: djhaskin987
Priority: major Milestone:
Component: djhaskin987/miller-rabin.plt Keywords:
Cc: Version: (1 3)
Racket Version: 5.2.1

Description

the function prime? only works for integers acceptable to the builtin procedure random, which don't go very high.

This function is useful mostly for checking much bigger integers.

Change History

Changed 22 months ago by djhaskin987

  • status changed from new to closed
  • resolution set to worksforme

Updated the documentation to reflect that the function "prime?" accepts an arbitrary RNG to get around this problem in a user-defined way. I think that is the best way to handle this problem.

Note: See TracTickets for help on using tickets.