Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 4d1c27940e3d7832db000010

Prime Numbers

List the first 100 prime numbers.

Start file
Prime Numbers
End file
2
3
5
7
11
13
17
19
23
29
31
37
41
43
47
53
59
61
67
71
73
79
83
89
97
101
103
107
109
113
127
131
137
139
149
151
157
163
167
173
179
181
191
193
197
199
211
223
227
229
233
239
241
251
257
263
269
271
277
281
283
293
307
311
313
317
331
337
347
349
353
359
367
373
379
383
389
397
401
409
419
421
431
433
439
443
449
457
461
463
467
479
487
491
499
503
509
521
523
541

View Diff

1c1,100
< Prime Numbers
---
> 2
> 3
> 5
> 7
> 11
> 13
> 17
> 19
> 23
> 29
> 31
> 37
> 41
> 43
> 47
> 53
> 59
> 61
> 67
> 71
> 73
> 79
> 83
> 89
> 97
> 101
> 103
> 107
> 109
> 113
> 127
> 131
> 137
> 139
> 149
> 151
> 157
> 163
> 167
> 173
> 179
> 181
> 191
> 193
> 197
> 199
> 211
> 223
> 227
> 229
> 233
> 239
> 241
> 251
> 257
> 263
> 269
> 271
> 277
> 281
> 283
> 293
> 307
> 311
> 313
> 317
> 331
> 337
> 347
> 349
> 353
> 359
> 367
> 373
> 379
> 383
> 389
> 397
> 401
> 409
> 419
> 421
> 431
> 433
> 439
> 443
> 449
> 457
> 461
> 463
> 467
> 479
> 487
> 491
> 499
> 503
> 509
> 521
> 523
> 541

Solutions by @bounce114:

Unlock 20 remaining solutions by signing in and submitting your own entry
Created by: @dstockwell

105 active golfers, 374 entries

Solutions by @bounce114:
39
#30 - bounce114 / @bounce114

12/06/2024 at 10:17AM

39
#>30 - bounce114 / @bounce114

12/07/2024 at 05:12AM

39
#>30 - bounce114 / @bounce114

12/07/2024 at 05:15AM

40
#>33 - bounce114 / @bounce114

12/06/2024 at 10:15AM

43
#>54 - bounce114 / @bounce114

12/06/2024 at 10:12AM

44
#>55 - bounce114 / @bounce114

12/06/2024 at 10:09AM

47
#>57 - bounce114 / @bounce114

12/06/2024 at 10:08AM

48
#>57 - bounce114 / @bounce114

12/06/2024 at 10:02AM

50
#>59 - bounce114 / @bounce114

12/06/2024 at 09:54AM

53
#>63 - bounce114 / @bounce114

12/06/2024 at 09:51AM

57
#>63 - bounce114 / @bounce114

12/06/2024 at 09:43AM

61
#>64 - bounce114 / @bounce114

12/06/2024 at 09:10AM

63
#>65 - bounce114 / @bounce114

12/06/2024 at 08:58AM

70
#>67 - bounce114 / @bounce114

12/06/2024 at 08:44AM

72
#>68 - bounce114 / @bounce114

12/06/2024 at 08:40AM

74
#>69 - bounce114 / @bounce114

12/06/2024 at 08:38AM

76
#>70 - bounce114 / @bounce114

12/06/2024 at 08:14AM

78
#>71 - bounce114 / @bounce114

12/06/2024 at 08:10AM

88
#>76 - bounce114 / @bounce114

12/06/2024 at 08:08AM

123
#>84 - bounce114 / @bounce114

12/06/2024 at 08:06AM