Letter Primes

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

For the numbers 1 to 100, print the associated letter if the number is divisible by given prime.
The Yandere Dev way to do this would be :

for i in range(1,100):
if i%2==0:print("A")
elif i%3==0:print("B")
elif i%5==0:print("C")
elif i%7==0:print("D")
elif i%11==0:print("E")
elif i%13==0:print("F")
elif i%17==0:print("G")
elif i%19==0:print("H")
elif i%23==0:print("I")
elif i%29==0:print("J")
elif i%31==0:print("K")
elif i%37==0:print("L")
elif i%41==0:print("M")
elif i%43==0:print("N")
elif i%47==0:print("O")
elif i%53==0:print("P")
elif i%59==0:print("Q")
elif i%61==0:print("R")
elif i%67==0:print("S")
elif i%71==0:print("T")
elif i%73==0:print("U")
elif i%79==0:print("V")
elif i%83==0:print("W")
elif i%89==0:print("X")
elif i%97==0:print("Y")
else:print('1')

Find the shortest program to achieve the same.

Options

exec is denied

rejudge feature is enabled

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

Sample input:_

*NOTHING*

Sample output:

1
A
B
A
C
A
D
A
B
A
E
A
F
A
B
A
G
A
H
A
B
A
I
A
C
A
B
A
J
A
K
A
B
A
C
A
L
A
B
A
M
A
N
A
B
A
O
A
D
A
B
A
P
A
C
A
B
A
Q
A
R
A
B
A
C
A
S
A
B
A
T
A
U
A
B
A
D
A
V
A
B
A
W
A
C
A
B
A
X
A
D
A
B
A
C
A
Y
A
B

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1rotary-o680.01712024/01/27 13:51:120B / 29B / 39B
2lynn740.01652024/01/30 06:34:320B / 62B / 12B

Ruby2 _

RankUserSizeTimeDateStatistics
1rotary-o680.06062024/01/28 00:01:210B / 36B / 28B
2Sisyphus680.05802024/01/30 09:19:200B / 31B / 35B

Perl _

RankUserSizeTimeDateStatistics
1tails540.01582024/01/22 09:51:000B / 18B / 36B
2Sisyphus560.01492024/01/26 15:46:570B / 21B / 35B

Python3 _

RankUserSizeTimeDateStatistics
1xnor720.04862024/01/29 15:24:470B / 61B / 11B
2lynn720.04732024/01/30 06:35:330B / 61B / 11B
3contina1330.04492024/02/02 04:26:490B / 77B / 38B

PHP _

RankUserSizeTimeDateStatistics
1'1970.02402024/02/13 14:41:360B / 99B / 0B

JavaScript _

RankUserSizeTimeDateStatistics
1ZED.CWT910.02362024/02/04 18:58:360B / 51B / 40B

Atlas _

RankUserSizeTimeDateStatistics
1tails330.30742024/01/22 17:04:330B / 4B / 28B

C _

RankUserSizeTimeDateStatistics
1tails740.01392024/01/25 10:10:580B / 34B / 40B
2rotary-o740.01382024/01/27 12:10:410B / 33B / 41B
3chocobi990.01392024/01/25 20:52:540B / 49B / 50B

Java _

RankUserSizeTimeDateStatistics
1rotary-o1150.27542024/01/28 09:43:120B / 63B / 49B
2rotary-o(lynn)1110.06322024/02/04 22:55:120B / 85B / 25B

C# _

RankUserSizeTimeDateStatistics
1rotary-o1450.03282024/02/04 15:32:211B / 83B / 55B
2rotary-o(lynn)1440.03942024/02/04 23:06:530B / 111B / 27B

AWK _

RankUserSizeTimeDateStatistics
1camelCasedSnivy1320.01422024/01/23 11:03:140B / ?B / ?B
2Fleur690.02062024/02/05 07:52:560B / 35B / 34B

sed _

RankUserSizeTimeDateStatistics
1tails630.01392024/01/25 11:42:090B / 45B / 16B
2Sisyphus640.01582024/01/26 15:18:040B / 44B / 17B

Bash _

RankUserSizeTimeDateStatistics
1Fleur530.01162024/01/22 11:34:170B / 28B / 23B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails670.09572024/01/22 15:09:170B / 24B / 37B

Whitespace _

RankUserSizeTimeDateStatistics
1%201810.02482024/01/24 02:13:070B / 0B / 0B
2nameless2720.01392024/01/30 20:03:040B / 0B / 0B

gs2 _

RankUserSizeTimeDateStatistics
1tails150.22792024/01/26 20:20:206B / 4B / 3B
2whio160.07272024/01/25 23:50:179B / 5B / 2B

Nibbles _

RankUserSizeTimeDateStatistics
1tails160.03832024/01/22 11:54:3113B / 2B / 1B

Lazy-K _

RankUserSizeTimeDateStatistics
1tails5300.03592024/01/28 12:43:590B / 287B / 243B
2tails (source)9280.03552024/01/28 12:48:300B / 381B / 305B

z80 _

RankUserSizeTimeDateStatistics
1tails320.08472024/01/24 21:41:2314B / 9B / 6B
2%20370.08432024/01/24 19:10:2419B / 7B / 8B
3%20 (tails)310.08452024/02/05 12:10:1914B / 8B / 6B

DOS _

RankUserSizeTimeDateStatistics
1chocobi573.07302024/01/25 22:24:2739B / 13B / 4B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o972.40392024/01/23 23:23:380B / 62B / 31B
2rotary-o(lynn)861.60122024/02/04 23:09:190B / 70B / 16B

Language Ranking_

RankLangUserSizeScore
1gs2tails1510000
2Nibblestails169375
3z80%20 (tails)314838
4Atlastails334545
5BashFleur532830
6Perltails542777
7DOSchocobi572631
8sedtails632380
9Bash (builtins)tails672238
10Rubyrotary-o682205
11Ruby2rotary-o682205
12AWKFleur692173
13Python3xnor722083
14Ctails742027
15Scalarotary-o(lynn)861744
16JavaScriptZED.CWT911648
17Javarotary-o(lynn)1111351
18C#rotary-o(lynn)1441041
19Whitespace%20181828
20PHP'197761
21Lazy-Ktails530283

return to the top page