id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us > feb_22_2019_HL_listFactors
prev  |  next  |  chance

Write a method that returns all of the prime factors of 'num' listed in a string in increasing order with each prime factor preceded by a ":". If the same prime factor occurs multiple times, list each occurrence. You MAY choose to use recursion, but it is NOT required.


feb_22_2019_HL_listFactors(3454337) → ":257:13441"
feb_22_2019_HL_listFactors(14641) → ":11:11:11:11"
feb_22_2019_HL_listFactors(1331) → ":11:11:11"

...Save, Compile, Run (ctrl-enter)

public String feb_22_2019_HL_listFactors(int num) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 410

Copyright Nick Parlante 2017 - privacy