Sha256: fde8164579dbc57195332d688928d76cf8c6cf92eff0905e2f255aebdbb5d5d6

Contents?: true

Size: 1.26 KB

Versions: 200

Compression:

Stored size: 1.26 KB

Contents

{
  "exercise": "prime-factors",
  "version": "1.0.0",
  "cases": [
    {
      "description": "returns prime factors for the given input number",
      "cases": [
        {
          "description": "no factors",
          "property": "factors",
          "input": 1,
          "expected": []
        },
        {
          "description": "prime number",
          "property": "factors",
          "input": 2,
          "expected": [2]
        },
        {
          "description": "square of a prime",
          "property": "factors",
          "input": 9,
          "expected": [3, 3]
        },
        {
          "description": "cube of a prime",
          "property": "factors",
          "input": 8,
          "expected": [2, 2, 2]
        },
        {
          "description": "product of primes and non-primes",
          "property": "factors",
          "input": 12,
          "expected": [2, 2, 3]
        },
        {
          "description": "product of primes",
          "property": "factors",
          "input": 901255,
          "expected": [5, 17, 23, 461]
        },
        {
          "description": "factors include a large prime",
          "property": "factors",
          "input": 93819012551,
          "expected": [11, 9539, 894119]
        }
      ]
    }
  ]
}

Version data entries

200 entries across 200 versions & 1 rubygems

Version Path
trackler-2.2.1.20 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.19 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.18 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.17 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.16 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.15 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.14 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.13 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.12 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.11 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.10 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.9 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.8 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.7 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.6 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.5 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.4 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.3 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.2 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.1 problem-specifications/exercises/prime-factors/canonical-data.json