Sha256: b20ee5b68f8254098cc072d9165d03b60d5d032a72bb27f7fe486776e11242d1
Contents?: true
Size: 1.5 KB
Versions: 78
Compression:
Stored size: 1.5 KB
Contents
{ "exercise": "prime-factors", "version": "1.1.0", "cases": [ { "description": "returns prime factors for the given input number", "cases": [ { "description": "no factors", "property": "factors", "input": { "value": 1 }, "expected": [] }, { "description": "prime number", "property": "factors", "input": { "value": 2 }, "expected": [2] }, { "description": "square of a prime", "property": "factors", "input": { "value": 9 }, "expected": [3, 3] }, { "description": "cube of a prime", "property": "factors", "input": { "value": 8 }, "expected": [2, 2, 2] }, { "description": "product of primes and non-primes", "property": "factors", "input": { "value": 12 }, "expected": [2, 2, 3] }, { "description": "product of primes", "property": "factors", "input": { "value": 901255 }, "expected": [5, 17, 23, 461] }, { "description": "factors include a large prime", "property": "factors", "input": { "value": 93819012551 }, "expected": [11, 9539, 894119] } ] } ] }
Version data entries
78 entries across 78 versions & 1 rubygems