JuliaMath / JuliaMath/Primes.jl
Option for output of factor(n) as string
- Dominant language
- Julia
- Stars
- 108
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
At times, it is desirable to incorporate the default REPL output of factor(n) into strings for use, for example, within a println command. It would be nice to have a type variant - factor(String,n) - which outputs in string form (eg/ factor(String,90) = "2 * 3^2 * 5"), as well as a method for converting a Factorization form into a nice string (eg/ prodform(factor(90)) = "2 * 3^2 * 5").
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the factor(n) entry point and the Factorization display or formatting code. Compare the requested factor(String,n) and prodform(factor(n)) examples, then add coverage showing that both produce the expected string form for 90 and related factorizations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100