JuliaMath / JuliaMath/Primes.jl

Option for output of factor(n) as string

Open
#88 1 comment 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.