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.100 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.99 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.98 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.97 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.96 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.95 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.94 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.93 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.92 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.91 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.90 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.89 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.88 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.87 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.86 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.85 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.84 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.83 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.82 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.81 problem-specifications/exercises/prime-factors/canonical-data.json