Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Date AuthorLanguageStatus Score
Apr 26, 2026 17:55TudyMTudyMCPPg++10.5.0Success116,171+21.87 RP
Apr 26, 2026 17:09TudyMTudyMCPPg++10.5.0Success155,742+64.21 RP
Apr 26, 2026 15:51olliecrowolliecrowCPPclang++18.1.3Success13,085
Apr 26, 2026 13:03Charles CabergsCharles CabergsCPPclang++18.1.3Success22,705
Apr 26, 2026 10:41olliecrowolliecrowCPPg++13.3.0Success141,028
Apr 26, 2026 10:37olliecrowolliecrowRUSTrust-1.94.0Success13,329
Apr 26, 2026 09:39Charles CabergsCharles CabergsCPPclang++18.1.3Success22,671+7.82 RP
Apr 26, 2026 05:07olliecrowolliecrowRUSTrust-1.94.0Success12,257
Apr 26, 2026 05:02olliecrowolliecrowRUSTrust-1.94.0Success12,137
Apr 26, 2026 04:58olliecrowolliecrowRUSTrust-1.94.0Success12,901
Apr 26, 2026 04:49olliecrowolliecrowCPPclang++18.1.3Success120,555
Apr 26, 2026 04:46olliecrowolliecrowGOgo1.26.2Success130,565
Apr 26, 2026 04:34olliecrowolliecrowRUSTrust-1.95.0Success13,736
Apr 26, 2026 04:27olliecrowolliecrowRUSTrust-1.95.0Success13,614
Apr 26, 2026 04:18olliecrowolliecrowCPPclang++18.1.3Success13,015
Apr 26, 2026 04:10Charles CabergsCharles CabergsCPPclang++18.1.3Success23,080+18.66 RP
Apr 26, 2026 01:44olliecrowolliecrowRUSTrust-1.94.0Success12,925
Apr 26, 2026 01:40olliecrowolliecrowRUSTrust-1.94.0Success152,473
Apr 26, 2026 00:29olliecrowolliecrowRUSTrust-1.95.0Success13,638
Apr 25, 2026 23:39olliecrowolliecrowRUSTrust-1.95.0Success13,357
Apr 25, 2026 23:30olliecrowolliecrowRUSTrust-1.95.0Success13,632
Apr 25, 2026 23:14olliecrowolliecrowCPPg++10.5.0Success133,934
Apr 25, 2026 20:18olliecrowolliecrowCPPg++10.5.0Success145,513
Apr 25, 2026 18:57olliecrowolliecrowCPPclang++18.1.3Success13,067
Apr 25, 2026 17:58olliecrowolliecrowRUSTrust-1.95.0Success13,504
Apr 25, 2026 17:56olliecrowolliecrowRUSTrust-1.95.0Success13,679
Apr 25, 2026 15:31olliecrowolliecrowRUSTrust-1.95.0Success13,534
Apr 25, 2026 14:27olliecrowolliecrowRUSTrust-1.95.0Success13,335
Apr 25, 2026 13:19olliecrowolliecrowRUSTrust-1.95.0Success13,615
Apr 25, 2026 12:04olliecrowolliecrowRUSTrust-1.95.0Success13,417
Apr 25, 2026 11:50olliecrowolliecrowCPPclang++18.1.3Success140,431
Apr 25, 2026 10:50olliecrowolliecrowRUSTrust-1.95.0Success13,443
Apr 25, 2026 10:46olliecrowolliecrowRUSTrust-1.95.0Success13,547
Apr 25, 2026 09:46olliecrowolliecrowRUSTrust-1.95.0Success13,609
Apr 25, 2026 07:36olliecrowolliecrowRUSTrust-1.95.0Success14,192
Apr 25, 2026 07:26olliecrowolliecrowCPPclang++18.1.3Success12,722
Apr 25, 2026 06:56olliecrowolliecrowRUSTrust-1.95.0Success13,251
Apr 25, 2026 06:47olliecrowolliecrowCPPclang++18.1.3Success12,802
Apr 25, 2026 06:11olliecrowolliecrowCPPclang++18.1.3Success123,911
Apr 25, 2026 05:07olliecrowolliecrowRUSTrust-1.95.0Success13,597
Apr 25, 2026 03:58olliecrowolliecrowCPPg++10.5.0Success117,671
Apr 25, 2026 03:21olliecrowolliecrowGOgo1.26.2Success198,022
Apr 25, 2026 03:05olliecrowolliecrowCPPclang++18.1.3Success12,677
Apr 25, 2026 03:02olliecrowolliecrowCPPclang++18.1.3Success12,752
Apr 25, 2026 02:03olliecrowolliecrowCPPclang++18.1.3Success13,281
Apr 25, 2026 01:18olliecrowolliecrowCPPclang++18.1.3Success12,650
Apr 25, 2026 00:31olliecrowolliecrowRUSTrust-1.95.0Success175,281
Apr 25, 2026 00:20olliecrowolliecrowCPPclang++18.1.3Success121,887
Apr 24, 2026 23:40olliecrowolliecrowGOgo1.26.2Success38,376
Apr 24, 2026 23:29olliecrowolliecrowRUSTrust-1.94.0Success13,276
Apr 24, 2026 22:31Charles CabergsCharles CabergsCPPg++13.3.0Success24,119+1.71 RP
Apr 24, 2026 22:22olliecrowolliecrowRUSTrust-1.94.0Success122,919
Apr 24, 2026 22:12olliecrowolliecrowCPPclang++18.1.3Success12,803
Apr 24, 2026 21:39Pavel SkripkinPavel SkripkinRUSTrust-1.95.0Success101,732
Apr 24, 2026 21:38Pavel SkripkinPavel SkripkinRUSTrust-1.95.0Success101,496+2.41 RP
Apr 24, 2026 21:26Pavel SkripkinPavel SkripkinRUSTrust-1.95.0Success106,475
Apr 24, 2026 21:24Pavel SkripkinPavel SkripkinRUSTrust-1.95.0Success105,584
Apr 24, 2026 21:14Pavel SkripkinPavel SkripkinRUSTrust-1.95.0Success104,046+5.22 RP
Apr 24, 2026 21:08Pavel SkripkinPavel SkripkinRUSTrust-1.95.0Error
Apr 24, 2026 21:06olliecrowolliecrowRUSTrust-1.94.0Success13,365
Apr 24, 2026 20:57Pavel SkripkinPavel SkripkinRUSTrust-1.95.0Success110,129
Apr 24, 2026 20:49Pavel SkripkinPavel SkripkinRUSTrust-1.95.0Success110,027+17.17 RP
Apr 24, 2026 20:41Pavel SkripkinPavel SkripkinRUSTrust-1.95.0Error
Apr 24, 2026 19:49olliecrowolliecrowGOgo1.26.2Success139,156
Apr 24, 2026 19:18olliecrowolliecrowRUSTrust-1.94.0Success13,270
Apr 24, 2026 19:14olliecrowolliecrowRUSTrust-1.95.0Error
Apr 24, 2026 18:54olliecrowolliecrowCPPclang++18.1.3Success12,962
Apr 24, 2026 18:21Victor MerckléVictor MerckléZIG0.16.0Success10,698+59.70 RP
Apr 24, 2026 18:17Victor MerckléVictor MerckléZIG0.16.0Error
Apr 24, 2026 18:14olliecrowolliecrowRUSTrust-1.95.0Success13,432
Apr 24, 2026 17:52olliecrowolliecrowCPPclang++18.1.3Success132,992
Apr 24, 2026 17:32Victor MerckléVictor MerckléGOgo1.26.2Success11,793+6.35 RP
Apr 24, 2026 17:03olliecrowolliecrowGOgo1.26.2Success137,328
Apr 24, 2026 16:52olliecrowolliecrowRUSTrust-1.95.0Success13,344
Apr 24, 2026 16:47Victor MerckléVictor MerckléGOgo1.26.2Success11,882+143.77 RP
Apr 24, 2026 15:55Victor MerckléVictor MerckléGOgo1.26.2Success39,052
Apr 24, 2026 15:45Victor MerckléVictor MerckléCSHARP10.0.7Success12,344+442.17 RP
Apr 24, 2026 15:42olliecrowolliecrowRUSTrust-1.94.0Success13,263
Apr 24, 2026 15:38Victor MerckléVictor MerckléRUSTrust-1.95.0Success11,256+81.64 RP
Apr 24, 2026 15:29olliecrowolliecrowCPPg++10.5.0Success149,905
Apr 24, 2026 15:25Victor MerckléVictor MerckléRUSTrust-1.95.0Success13,728
Apr 24, 2026 15:18Victor MerckléVictor MerckléRUSTrust-1.95.0Error
Apr 24, 2026 14:28olliecrowolliecrowRUSTrust-1.94.0Success13,359
Apr 24, 2026 14:16olliecrowolliecrowCPPclang++18.1.3Success13,003
Apr 24, 2026 13:25olliecrowolliecrowCPPclang++18.1.3Success18,346
Apr 24, 2026 11:45olliecrowolliecrowGOgo1.26.2Success147,552
Apr 24, 2026 11:44Victor MerckléVictor MerckléCPPg++14.2.0Success11,017+56.19 RP
Apr 24, 2026 11:36olliecrowolliecrowRUSTrust-1.94.0Success13,401
Apr 24, 2026 11:23olliecrowolliecrowCPPclang++18.1.3Success150,782
Apr 24, 2026 10:41Dominique GarmierDominique GarmierCPPg++13.3.0Success11,723
Apr 24, 2026 10:20olliecrowolliecrowCPPclang++18.1.3Success12,809
Apr 24, 2026 08:51olliecrowolliecrowRUSTrust-1.94.0Success262,051
Apr 24, 2026 08:35olliecrowolliecrowCPPclang++18.1.3Success125,489
Apr 24, 2026 08:33Dominique GarmierDominique GarmierCPPg++13.3.0Success39,860
Apr 24, 2026 07:52olliecrowolliecrowCPPclang++18.1.3Success12,769
Apr 24, 2026 07:40olliecrowolliecrowGOgo1.26.2Success147,336
Apr 24, 2026 07:35olliecrowolliecrowGOgo1.26.2Success147,092
Apr 24, 2026 07:17olliecrowolliecrowCPPclang++18.1.3Success13,092
Apr 24, 2026 07:13olliecrowolliecrowCPPclang++18.1.3Success127,315
Apr 24, 2026 05:59olliecrowolliecrowCPPclang++18.1.3Success132,029