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
Nov 9, 2026 22:38janwwwjanwwwCPPg++14.2.0Success3,005+508.50 RP
Oct 17, 2026 20:23izotoffizotoffGOgo1.26.2Success160,247
Oct 17, 2026 09:55KacpxerKacpxerCPPclang++20.1.2Success4,354+2'296.74 RP
Oct 17, 2026 06:58janwwwjanwwwZIG0.15.1Success3,547+175.18 RP
Oct 15, 2026 16:56zayd-ansari-codezayd-ansari-codeCPPg++10.5.0Success6,767,411+1.48 RP
Oct 13, 2026 18:42Karthik ReddyKarthik ReddyCPPclang++18.1.3Success2,565
Oct 13, 2026 07:57highload-churnerhighload-churnerCPPclang++18.1.3Success2,403+31.06 RP
Oct 13, 2026 07:49highload-churnerhighload-churnerCPPclang++18.1.3Success2,412+24.00 RP
Oct 13, 2026 07:44highload-churnerhighload-churnerCPPclang++18.1.3Success2,426
Oct 13, 2026 07:28Karthik ReddyKarthik ReddyCPPclang++18.1.3Success2,479
Oct 13, 2026 07:25Karthik ReddyKarthik ReddyCPPclang++18.1.3Success2,485
Oct 13, 2026 04:11highload-churnerhighload-churnerCPPclang++18.1.3Success2,605
Oct 13, 2026 04:06highload-churnerhighload-churnerCPPclang++18.1.3Success2,419+420.10 RP
Oct 13, 2026 03:50highload-churnerhighload-churnerCPPclang++18.1.3Success2,631+7.21 RP
Oct 13, 2026 03:47highload-churnerhighload-churnerCPPclang++18.1.3Success2,637
Oct 13, 2026 03:38highload-churnerhighload-churnerCPPclang++18.1.3Success2,652
Oct 13, 2026 03:34highload-churnerhighload-churnerCPPclang++18.1.3Success2,647
Oct 13, 2026 03:31highload-churnerhighload-churnerCPPclang++18.1.3Success2,650
Oct 13, 2026 03:21highload-churnerhighload-churnerCPPclang++18.1.3Error
Oct 13, 2026 03:20highload-churnerhighload-churnerCPPclang++18.1.3Error
Oct 13, 2026 03:15highload-churnerhighload-churnerCPPclang++18.1.3Success2,656
Oct 13, 2026 03:12highload-churnerhighload-churnerCPPclang++18.1.3Success2,653
Oct 13, 2026 03:10highload-churnerhighload-churnerCPPclang++18.1.3Success2,636+14.34 RP
Oct 13, 2026 03:06highload-churnerhighload-churnerCPPclang++18.1.3Success2,652
Oct 13, 2026 03:03highload-churnerhighload-churnerCPPclang++18.1.3Success2,739
Oct 13, 2026 02:56highload-churnerhighload-churnerCPPclang++18.1.3Success2,646+81.06 RP
Oct 12, 2026 20:13janwwwjanwwwCPPg++14.2.0Success3,782+301.63 RP
Oct 12, 2026 19:49highload-churnerhighload-churnerCPPclang++18.1.3Error
Oct 12, 2026 17:06highload-churnerhighload-churnerCPPclang++18.1.3Success2,704+41.92 RP
Oct 12, 2026 16:36highload-churnerhighload-churnerCPPclang++18.1.3Success2,735+307.35 RP
Oct 12, 2026 16:35highload-churnerhighload-churnerCPPclang++18.1.3Error
Oct 12, 2026 16:29highload-churnerhighload-churnerCPPclang++18.1.3Error
Oct 12, 2026 15:45highload-churnerhighload-churnerCPPclang++18.1.3Error
Oct 12, 2026 15:39highload-churnerhighload-churnerCPPclang++18.1.3Error
Oct 12, 2026 15:16highload-churnerhighload-churnerCPPclang++18.1.3Success2,986+39.89 RP
Oct 12, 2026 15:15highload-churnerhighload-churnerCPPclang++18.1.3Error
Oct 12, 2026 15:12highload-churnerhighload-churnerCPPclang++18.1.3Error
Oct 12, 2026 15:10highload-churnerhighload-churnerCPPclang++18.1.3Error
Oct 12, 2026 15:07highload-churnerhighload-churnerCPPclang++18.1.3Error
Oct 12, 2026 15:04highload-churnerhighload-churnerCPPclang++18.1.3Success3,700
Oct 12, 2026 14:59highload-churnerhighload-churnerCPPclang++18.1.3Success4,145
Oct 12, 2026 14:55highload-churnerhighload-churnerCPPclang++18.1.3Success3,022+70.72 RP
Oct 12, 2026 14:44highload-churnerhighload-churnerCPPclang++18.1.3Success3,088+74.79 RP
Oct 12, 2026 14:35highload-churnerhighload-churnerCPPclang++18.1.3Success4,461
Oct 12, 2026 14:23highload-churnerhighload-churnerCPPclang++18.1.3Success3,161+202.35 RP
Oct 12, 2026 14:13highload-churnerhighload-churnerCPPclang++18.1.3Success3,377+1'220.56 RP
Oct 10, 2026 00:25highload-churnerhighload-churnerCPPclang++18.1.3Success6,245
Oct 9, 2026 23:36highload-churnerhighload-churnerCPPclang++18.1.3Success6,438
Oct 9, 2026 23:35highload-churnerhighload-churnerCPPclang++18.1.3Success6,179
Oct 9, 2026 23:03highload-churnerhighload-churnerCPPclang++18.1.3Success6,567
Oct 9, 2026 23:02highload-churnerhighload-churnerCPPclang++18.1.3Success6,556
Oct 9, 2026 22:45highload-churnerhighload-churnerCPPclang++18.1.3Success6,259
Oct 9, 2026 22:34highload-churnerhighload-churnerCPPclang++18.1.3Success5,745+132.93 RP
Oct 9, 2026 22:25highload-churnerhighload-churnerCPPclang++18.1.3Success6,220+49.60 RP
Oct 9, 2026 22:20highload-churnerhighload-churnerCPPclang++18.1.3Success6,418+2.42 RP
Oct 9, 2026 22:16highload-churnerhighload-churnerCPPclang++18.1.3Success6,428+12.72 RP
Oct 9, 2026 21:40highload-churnerhighload-churnerCPPclang++18.1.3Success6,481+295.62 RP
Oct 9, 2026 21:37highload-churnerhighload-churnerCPPclang++18.1.3Success12,010
Oct 9, 2026 21:30highload-churnerhighload-churnerCPPclang++18.1.3Success8,017+107.10 RP
Oct 9, 2026 21:19highload-churnerhighload-churnerCPPclang++18.1.3Success8,770+164.93 RP
Oct 9, 2026 18:48highload-churnerhighload-churnerCPPclang++18.1.3Success10,253+65.24 RP
Oct 9, 2026 18:27janwwwjanwwwCPPg++14.2.0Success4,269+936.20 RP
Oct 9, 2026 18:24highload-churnerhighload-churnerCPPclang++18.1.3Success10,988+14.27 RP
Oct 9, 2026 17:54highload-churnerhighload-churnerCPPclang++18.1.3Success11,163+69.10 RP
Oct 9, 2026 17:34Karthik ReddyKarthik ReddyCSHARP9.0.18Success2,522
Oct 9, 2026 17:25highload-churnerhighload-churnerCPPclang++18.1.3Success12,096+26.01 RP
Oct 9, 2026 16:54highload-churnerhighload-churnerCPPclang++18.1.3Success12,489+53.77 RP
Oct 9, 2026 16:23highload-churnerhighload-churnerCPPclang++18.1.3Success13,388+5.04 RP
Oct 9, 2026 16:07Karthik ReddyKarthik ReddyCSHARP9.0.18Success2,522
Oct 9, 2026 15:23highload-churnerhighload-churnerCPPclang++18.1.3Success13,479+26.69 RP
Oct 9, 2026 15:22Karthik ReddyKarthik ReddyCSHARP9.0.18Success2,526
Oct 9, 2026 15:00highload-churnerhighload-churnerCPPg++13.3.0Success13,982+13.06 RP
Oct 9, 2026 14:39highload-churnerhighload-churnerCPPg++13.3.0Success14,242+28.43 RP
Oct 9, 2026 14:08highload-churnerhighload-churnerCPPg++13.3.0Success14,843+39.16 RP
Oct 9, 2026 14:03highload-churnerhighload-churnerCPPg++13.3.0Success15,759+75.34 RP
Oct 9, 2026 13:42highload-churnerhighload-churnerCPPg++13.3.0Success17,882+18.39 RP
Oct 9, 2026 13:30highload-churnerhighload-churnerCPPg++13.3.0Success19,317
Oct 9, 2026 13:30highload-churnerhighload-churnerCPPg++13.3.0Success18,490+132.45 RP
Oct 9, 2026 12:50highload-churnerhighload-churnerCPPg++13.3.0Success24,487+66.34 RP
Oct 9, 2026 12:34highload-churnerhighload-churnerCPPg++13.3.0Success29,236+342.04 RP
Oct 9, 2026 06:42Karthik ReddyKarthik ReddyCSHARP9.0.18Success2,519
Oct 9, 2026 06:32Karthik ReddyKarthik ReddyCSHARP9.0.18Success2,540
Oct 9, 2026 06:26Karthik ReddyKarthik ReddyCSHARP9.0.18Success2,586
Oct 9, 2026 06:20Karthik ReddyKarthik ReddyCSHARP9.0.18Success2,600
Oct 9, 2026 06:09Karthik ReddyKarthik ReddyCSHARP9.0.18Success2,580
Oct 9, 2026 06:00Karthik ReddyKarthik ReddyCSHARP9.0.18Success2,601
Oct 9, 2026 05:55Karthik ReddyKarthik ReddyCSHARP9.0.18Success2,635
Oct 9, 2026 05:30Karthik ReddyKarthik ReddyCSHARP9.0.18Success2,705
Oct 9, 2026 04:44Karthik ReddyKarthik ReddyCSHARP9.0.18Success293,904
Oct 9, 2026 04:42Karthik ReddyKarthik ReddyCSHARP9.0.18Error
Oct 9, 2026 04:41Karthik ReddyKarthik ReddyCSHARP9.0.18Error
Oct 9, 2026 04:39Karthik ReddyKarthik ReddyCSHARP9.0.18Error
Oct 9, 2026 04:37Karthik ReddyKarthik ReddyCSHARP9.0.18Error
Oct 9, 2026 04:31Karthik ReddyKarthik ReddyCSHARP9.0.18Success293,806
Oct 9, 2026 04:28Karthik ReddyKarthik ReddyCSHARP9.0.18Error
Oct 9, 2026 04:22Karthik ReddyKarthik ReddyCSHARP9.0.18Error
Oct 9, 2026 04:21Karthik ReddyKarthik ReddyCSHARP9.0.18Error
Oct 9, 2026 04:18Karthik ReddyKarthik ReddyCSHARP9.0.18Error
Oct 9, 2026 04:14Karthik ReddyKarthik ReddyCSHARP9.0.18Error
Oct 9, 2026 04:13Karthik ReddyKarthik ReddyCSHARP9.0.18Error