Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

factor source realm

Package factor is a Gauntlet judge: factor a number into primes.

Overview

Package factor is a Gauntlet judge: factor a number into primes.

Answers look like "2*2*3*7" (ascending, separated by "*"). Checking an answer is cheap: multiply the factors back and test each one for primality. Finding them is the work.

Functions 3

func Check

Action
1func Check(in, out string) bool
source

Check reports whether out is the ascending prime factorization of in.

func Inputs

Action
1func Inputs(seed uint64) []string
source

Inputs returns 6 random numbers for a seed.

Dependencies

Source Files 3