GPF in Binary

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Make a program that, given an integer of reasonable size, outputs the greatest prime factor of that integer, in binary, but with all 0s replaced with underscores (_) and all 1s replaced with minus signs (-).

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

15

Sample output:

-_-

Sample input:_

7

Sample output:

---

Sample input:_

115

Sample output:

-_---

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1Histocrat (rand)280.01322014/08/04 22:57:240B / 2B / 24B
2Histocrat (mathn)670.06102014/08/04 23:02:510B / 34B / 31B
3Histocrat810.03492014/08/04 23:10:430B / 35B / 43B
4mitchs (luck)250.03672014/08/11 13:19:020B / 3B / 22B
5mitchs (Histocrat,luck)270.02452014/08/11 13:06:040B / 2B / 23B

Perl _

RankUserSizeTimeDateStatistics
1teebee270.01252014/08/09 06:01:230B / 8B / 17B
2whio280.03962014/08/09 04:50:160B / 6B / 22B
3JWinslow23980.04142014/08/04 11:16:080B / 45B / 52B
4BioFALSE410.03312014/08/30 08:04:290B / 13B / 23B

Python _

RankUserSizeTimeDateStatistics
1hallvabo290.08472014/08/05 00:40:410B / ?B / ?B
2teebee290.09342014/08/08 08:58:510B / 13B / 16B
3twobit290.09902014/08/09 00:23:550B / 13B / 16B
4hallvabo (noluck)320.08872014/08/05 01:01:160B / ?B / ?B

JavaScript _

RankUserSizeTimeDateStatistics
1_nderscore(luck)400.03502014/08/05 01:20:580B / 13B / 26B
2teebee400.04172014/08/05 05:25:510B / 13B / 26B
3_nderscore460.04462014/08/04 14:28:120B / 24B / 22B

Lua _

RankUserSizeTimeDateStatistics
1teebee420.03232014/08/08 09:19:480B / 20B / 22B
2Hendrik420.04292014/08/08 10:42:230B / 20B / 22B
3twobit420.03782014/08/08 23:54:320B / 20B / 22B
4AndoDaan560.03222014/08/05 23:49:160B / ?B / ?B

BASIC _

RankUserSizeTimeDateStatistics
1teebee440.03322014/08/08 09:46:300B / 21B / 22B
2pooq520.03252014/08/05 20:36:130B / 20B / 25B

J _

RankUserSizeTimeDateStatistics
1nooodl220.10342014/08/04 20:10:570B / ?B / ?B
2pooq220.06932014/08/04 22:07:510B / 6B / 16B
3medialuna270.09302014/08/25 15:21:100B / ?B / ?B

K _

RankUserSizeTimeDateStatistics
1teebee210.03192014/08/05 17:13:530B / 2B / 19B

C _

RankUserSizeTimeDateStatistics
1teebee330.00052014/08/10 18:39:381B / 11B / 21B
2nanayaT1600.03172014/08/09 21:16:170B / 82B / 77B

Haskell _

RankUserSizeTimeDateStatistics
1cojna470.03282014/08/10 02:13:100B / 23B / 21B
2henkma470.03682014/08/10 12:24:320B / ?B / ?B

AWK _

RankUserSizeTimeDateStatistics
1llhuii310.03422014/08/07 01:55:580B / 5B / 26B
2teebee310.03162014/08/07 05:50:020B / 13B / 18B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii310.03352014/08/07 02:01:000B / 4B / 27B
2teebee310.03222014/08/07 06:29:560B / 4B / 27B
3llhuii(no luck)680.03202014/08/07 02:15:350B / 29B / 39B

R _

RankUserSizeTimeDateStatistics
1pooq370.43002014/08/04 22:35:230B / 11B / 26B
2teebee370.41922014/08/08 09:05:170B / 11B / 26B
3vlo370.39482014/08/15 05:38:190B / ?B / ?B

Brainfuck _

RankUserSizeTimeDateStatistics
1AndoDaan2230.03202014/08/11 09:12:230B / 0B / 223B

Befunge _

RankUserSizeTimeDateStatistics
1AndoDaan420.03332014/08/05 04:04:020B / ?B / ?B

GolfScript _

RankUserSizeTimeDateStatistics
1whio170.05692014/08/06 00:26:370B / 3B / 14B
2twobit170.05332014/08/08 23:59:260B / 3B / 14B
3nooodl190.04852014/08/04 20:03:130B / ?B / ?B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik230.05072014/08/04 11:50:230B / 10B / 13B
2teebee230.03432014/08/05 05:15:520B / 12B / 11B

Language Ranking_

RankLangUserSizeScore
1GolfScriptwhio1710000
2Kteebee218095
3Jnooodl227727
4BurlesqueHendrik237391
5Rubymitchs (luck)256800
6Perlteebee276296
7Pythonhallvabo295862
8AWKllhuii315483
9xgawkllhuii315483
10Cteebee335151
11Rpooq374594
12JavaScript_nderscore(luck)404250
13BefungeAndoDaan424047
14Luateebee424047
15BASICteebee443863
16Haskellcojna473617
17BrainfuckAndoDaan223762

return top