Sha256: 379280c337384093724ba1f2bed94ee5a7137d9cd28d72b7b9e2b8505bdbaef9
Contents?: true
Size: 672 Bytes
Versions: 30
Compression:
Stored size: 672 Bytes
Contents
package prime // Source: exercism/problem-specifications // Commit: bf5bb2b prime-factors: Fix canonical-data.json formatting // Problem Specifications Version: 1.0.0 var tests = []struct { description string input int64 expected []int64 }{ { "no factors", 1, []int64{}, }, { "prime number", 2, []int64{2}, }, { "square of a prime", 9, []int64{3, 3}, }, { "cube of a prime", 8, []int64{2, 2, 2}, }, { "product of primes and non-primes", 12, []int64{2, 2, 3}, }, { "product of primes", 901255, []int64{5, 17, 23, 461}, }, { "factors include a large prime", 93819012551, []int64{11, 9539, 894119}, }, }
Version data entries
30 entries across 30 versions & 1 rubygems