Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Problem
- def self.root(integer)
- [576019, 576029]
- end
- end
- require 'test/unit'
- class ProblemTest < Test::Unit::TestCase
- def test_prime_root_finder
- factors = Problem.root(331803648551)
- assert_equal(factors, [576019, 576029])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment