Ad
  • Custom User Avatar

    Be careful. As is said in Description: "Same" means, here, that the elements in b are the elements in a squared, regardless of the order.

  • Custom User Avatar

    Thanks bro! How to see the test input? I was confused by the output '(15073)' should equal '(24)(3)(11)(43)(15073)', which made me thought that 15073 was the test input.
    How to see this link you gave below?
    test.assert_equals(prime_factors(342217392), "(2
    4)(3)(11)(43)(15073)")

  • Custom User Avatar

    Your code is failing this testcase (Python):

    test.assert_equals(prime_factors(342217392), "(2**4)(3)(11)(43)(15073)")
    

    You can always try printing the inputs to see which inputs are failing the tests, (See How can I see which input causes my solution to fail?)

    def prime_factors(n):
    	print(n)
    	...
    
  • Custom User Avatar

    15073 is a prime number but the answer is (2**4)(3)(11)(43)(15073). Can someone give me some explain? Thanks a lot!