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

Version Path
trackler-2.2.1.180 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.179 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.178 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.177 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.176 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.175 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.174 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.173 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.172 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.171 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.170 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.169 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.167 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.166 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.165 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.164 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.163 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.162 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.161 problem-specifications/exercises/prime-factors/canonical-data.json
trackler-2.2.1.160 problem-specifications/exercises/prime-factors/canonical-data.json