Sha256: e5b3ab2540aab9645dd6077d8c03ba316848cad5c68ec64b7a67d7a25d6ada6c

Contents?: true

Size: 350 Bytes

Versions: 10

Compression:

Stored size: 350 Bytes

Contents

{ "question" : {
    "id": "",
    "category": "regex",
    "nerd_level": 5,
    "text": "This regex is normally used to determine if a number is not prime: /^1?$|^(1+?)\1+$/, but it is broken, how to fix it? The number has the format /1{number}/.",
    "a1": "/^1?$|^(11+?)\1+$/",
    "created_at": "2011-06-07",
    "created_by": "mkorfmann"
  }
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
muzang-plugins-1.1.6 lib/muzang-plugins/muzang-nerdpursuit/questions/regex/prime.json
muzang-plugins-1.1.5 lib/muzang-plugins/muzang-nerdpursuit/questions/regex/prime.json
muzang-plugins-1.1.4 lib/muzang-plugins/muzang-nerdpursuit/questions/regex/prime.json
muzang-plugins-1.1.3 lib/muzang-plugins/muzang-nerdpursuit/questions/regex/prime.json
muzang-plugins-1.1.2 lib/muzang-plugins/muzang-nerdpursuit/questions/regex/prime.json
muzang-plugins-1.1.1 lib/muzang-plugins/muzang-nerdpursuit/questions/regex/prime.json
muzang-plugins-1.1.0 lib/muzang-plugins/muzang-nerdpursuit/questions/regex/prime.json
muzang-plugins-1.0.2 lib/muzang-plugins/muzang-nerdpursuit/questions/regex/prime.json
muzang-plugins-1.0.1 lib/muzang-plugins/muzang-nerdpursuit/questions/regex/prime.json
muzang-plugins-1.0.0 lib/muzang-plugins/muzang-nerdpursuit/questions/regex/prime.json