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
May 16, 2026 21:14M-RochatM-RochatCPPclang++18.1.3Success38,181
May 16, 2026 20:47M-RochatM-RochatCPPclang++18.1.3Success51,392
May 16, 2026 20:42M-RochatM-RochatCPPclang++18.1.3Success47,837
May 16, 2026 20:41M-RochatM-RochatCPPclang++18.1.3Success40,365
May 16, 2026 20:40M-RochatM-RochatCPPclang++18.1.3Success40,746
May 16, 2026 20:38M-RochatM-RochatCPPclang++18.1.3Error
May 16, 2026 20:19M-RochatM-RochatCPPclang++18.1.3Success36,751+44.21 RP
May 16, 2026 20:13M-RochatM-RochatCPPclang++18.1.3Error
May 16, 2026 18:03olliecrowolliecrowCSHARP9.0.15Error
May 16, 2026 16:04M-RochatM-RochatCPPclang++18.1.3Success49,457
May 16, 2026 16:01M-RochatM-RochatCPPclang++18.1.3Success69,457
May 16, 2026 16:01M-RochatM-RochatCPPclang++18.1.3Success77,722
May 16, 2026 16:01M-RochatM-RochatCPPclang++18.1.3Success46,544
May 16, 2026 15:55M-RochatM-RochatCPPclang++18.1.3Success43,881+136.86 RP
May 16, 2026 07:27M-RochatM-RochatCPPclang++18.1.3Success135,777
May 16, 2026 07:22M-RochatM-RochatCPPclang++18.1.3Success109,859+6.03 RP
May 16, 2026 06:59M-RochatM-RochatCPPclang++18.1.3Success125,046
May 15, 2026 20:23M-RochatM-RochatCPPclang++18.1.3Success117,650+85.00 RP
May 15, 2026 01:10zielajzielajCPPclang++18.1.3Error+533.85 RP
May 14, 2026 17:05Josu San MartinJosu San MartinZIG0.15.1Success114,582
May 11, 2026 22:23Aleksei ShahoikaAleksei ShahoikaCPPg++10.5.0Error
May 11, 2026 22:00Aleksei ShahoikaAleksei ShahoikaCPPclang++18.1.3Error+82.57 RP
May 11, 2026 21:53Aleksei ShahoikaAleksei ShahoikaCPPclang++18.1.3Success14,478+48.36 RP
May 11, 2026 21:49Aleksei ShahoikaAleksei ShahoikaCPPclang++18.1.3Success15,568+144.29 RP
May 11, 2026 21:43Aleksei ShahoikaAleksei ShahoikaCPPclang++18.1.3Success20,078+62.90 RP
May 11, 2026 09:58Aleksei ShahoikaAleksei ShahoikaCPPclang++18.1.3Success22,980+12.79 RP
May 11, 2026 09:39Aleksei ShahoikaAleksei ShahoikaCPPclang++18.1.3Success23,676+195.27 RP
May 11, 2026 00:04Aleksei ShahoikaAleksei ShahoikaCPPclang++18.1.3Success44,871
May 10, 2026 23:54Aleksei ShahoikaAleksei ShahoikaCPPclang++18.1.3Success44,034+3.27 RP
May 10, 2026 23:36Aleksei ShahoikaAleksei ShahoikaCPPclang++18.1.3Success44,825
May 10, 2026 22:35Aleksei ShahoikaAleksei ShahoikaCPPg++10.5.0Success44,678+4.67 RP
May 10, 2026 22:14Aleksei ShahoikaAleksei ShahoikaCPPclang++18.1.3Success49,525
May 10, 2026 22:05Aleksei ShahoikaAleksei ShahoikaCPPg++10.5.0Success45,631+92.29 RP
May 7, 2026 08:31olliecrowolliecrowCPPclang++18.1.3Error+120.04 RP
May 7, 2026 05:48olliecrowolliecrowCPPclang++18.1.3Success12,017
May 7, 2026 01:17olliecrowolliecrowCPPclang++18.1.3Error
May 6, 2026 23:38olliecrowolliecrowCPPclang++18.1.3Error
May 6, 2026 18:45olliecrowolliecrowCPPclang++18.1.3Success12,356
May 6, 2026 02:22olliecrowolliecrowCPPclang++18.1.3Success14,056
May 5, 2026 19:55olliecrowolliecrowCPPclang++18.1.3Error
May 5, 2026 07:56Victor MerckléVictor MerckléCPPg++14.2.0Error
May 5, 2026 01:45olliecrowolliecrowCPPclang++18.1.3Error
May 5, 2026 01:02olliecrowolliecrowCPPclang++18.1.3Error
May 4, 2026 23:35olliecrowolliecrowCPPclang++18.1.3Error
May 4, 2026 22:43olliecrowolliecrowCPPclang++18.1.3Error
May 3, 2026 21:06TudyMTudyMCPPg++14.2.0Success30,061
May 3, 2026 21:03TudyMTudyMCPPg++14.2.0Success32,075
May 3, 2026 20:58TudyMTudyMCPPg++14.2.0Success30,402
May 3, 2026 20:51TudyMTudyMCPPg++14.2.0Success30,939
May 3, 2026 20:46TudyMTudyMCPPg++14.2.0Success30,476
May 3, 2026 20:41TudyMTudyMCPPg++14.2.0Success30,044+0.25 RP
May 3, 2026 20:35TudyMTudyMCPPg++14.2.0Success30,134
May 3, 2026 20:31TudyMTudyMCPPg++14.2.0Success30,067+3.42 RP
May 3, 2026 20:02TudyMTudyMCPPg++14.2.0Success30,379+0.28 RP
May 3, 2026 19:56TudyMTudyMCPPg++14.2.0Success42,501
May 3, 2026 19:52TudyMTudyMCPPg++14.2.0Success30,405+4.86 RP
May 3, 2026 19:46TudyMTudyMCPPg++14.2.0Success30,861+2.42 RP
May 3, 2026 19:42TudyMTudyMCPPg++14.2.0Success31,234
May 3, 2026 19:35TudyMTudyMCPPg++14.2.0Success31,093+0.59 RP
May 3, 2026 19:30TudyMTudyMCPPg++14.2.0Success31,150+1.75 RP
May 3, 2026 19:26TudyMTudyMCPPg++14.2.0Success31,354
May 3, 2026 19:21TudyMTudyMCPPg++14.2.0Success31,494
May 3, 2026 19:16TudyMTudyMCPPg++14.2.0Success31,480
May 3, 2026 19:11TudyMTudyMCPPg++14.2.0Success31,321+3.42 RP
May 3, 2026 19:06TudyMTudyMCPPg++14.2.0Success31,660+2.11 RP
May 3, 2026 19:01TudyMTudyMCPPg++14.2.0Success31,873+5.91 RP
May 3, 2026 18:56TudyMTudyMCPPg++14.2.0Success32,485+4.79 RP
May 1, 2026 16:41Pavel SkripkinPavel SkripkinRUSTrust-1.95.0Success38,978
Apr 30, 2026 23:38Charles CabergsCharles CabergsCPPclang++18.1.3Success21,621
Apr 30, 2026 21:08olliecrowolliecrowZIG0.15.2Success12,131
Apr 30, 2026 20:49olliecrowolliecrowCSHARP9.0.15Success13,076
Apr 30, 2026 20:33olliecrowolliecrowGOgo1.26.2Success12,400
Apr 30, 2026 20:26olliecrowolliecrowGOgo1.26.2Error
Apr 30, 2026 16:05Charles CabergsCharles CabergsCPPclang++18.1.3Success30,381
Apr 30, 2026 13:31Charles CabergsCharles CabergsCPPclang++18.1.3Error
Apr 30, 2026 13:19olliecrowolliecrowGOgo1.26.2Success12,396
Apr 30, 2026 13:14olliecrowolliecrowGOgo1.26.2Success12,425
Apr 30, 2026 12:59olliecrowolliecrowRUSTrust-1.94.0Error
Apr 30, 2026 12:44olliecrowolliecrowCPPclang++18.1.3Error
Apr 30, 2026 10:30olliecrowolliecrowZIG0.15.2Error
Apr 30, 2026 10:27olliecrowolliecrowZIG0.15.2Error
Apr 30, 2026 10:22olliecrowolliecrowZIG0.15.1Success12,040
Apr 30, 2026 10:04olliecrowolliecrowCSHARP9.0.15Success13,181
Apr 30, 2026 09:02olliecrowolliecrowZIG0.15.2Error
Apr 30, 2026 08:44olliecrowolliecrowCSHARP9.0.15Success13,635
Apr 30, 2026 08:30olliecrowolliecrowGOgo1.26.2Success12,455
Apr 30, 2026 08:14olliecrowolliecrowRUSTrust-1.94.0Error
Apr 30, 2026 08:00olliecrowolliecrowCPPclang++18.1.3Error+24.15 RP
Apr 30, 2026 07:18olliecrowolliecrowCSHARP9.0.15Success13,601
Apr 30, 2026 06:48olliecrowolliecrowRUSTrust-1.94.0Success43,060
Apr 30, 2026 05:33Charles CabergsCharles CabergsCPPclang++18.1.3Success34,318
Apr 30, 2026 04:23olliecrowolliecrowCSHARP9.0.15Success13,619
Apr 30, 2026 04:07olliecrowolliecrowGOgo1.26.2Error
Apr 30, 2026 03:49olliecrowolliecrowRUSTrust-1.94.0Error
Apr 30, 2026 03:46olliecrowolliecrowRUSTrust-1.94.0Error
Apr 30, 2026 02:42olliecrowolliecrowCSHARP9.0.15Success19,022
Apr 30, 2026 01:08olliecrowolliecrowCSHARP9.0.15Success19,677
Apr 30, 2026 01:04olliecrowolliecrowCSHARP9.0.15Error
Apr 29, 2026 23:31olliecrowolliecrowRUSTrust-1.94.0Error
Apr 29, 2026 21:52olliecrowolliecrowRUSTrust-1.94.0Success12,664