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 15, 2024 19:21Haha ExpertHaha ExpertCSHARP9.0.0-rc.2Error
Nov 15, 2024 17:47Haha ExpertHaha ExpertCSHARP9.0.0-rc.2Success17,105,981+0.02 RP
Nov 15, 2024 12:48Haha ExpertHaha ExpertCSHARP9.0.0-rc.2Error
Nov 15, 2024 12:46Haha ExpertHaha ExpertCSHARP9.0.0-rc.2Error
Nov 15, 2024 12:24Haha ExpertHaha ExpertCSHARP9.0.0-rc.2Success17,596,440
Nov 15, 2024 11:58Haha ExpertHaha ExpertCSHARP9.0.0-rc.2Success17,556,057
Nov 15, 2024 11:49Haha ExpertHaha ExpertCSHARP9.0.0-rc.2Success17,521,036
Nov 15, 2024 11:26Haha ExpertHaha ExpertCSHARP9.0.0-rc.2Success17,549,114
Nov 15, 2024 11:15Haha ExpertHaha ExpertCSHARP9.0.0-rc.2Success17,493,408
Nov 15, 2024 11:10Haha ExpertHaha ExpertCSHARP9.0.0-rc.2Error
Nov 15, 2024 07:41E SequeiraE SequeiraCPPg++13.2.0Success1,982,524+0.01 RP
Nov 15, 2024 07:36E SequeiraE SequeiraCPPg++13.2.0Success2,172,723
Nov 15, 2024 07:34E SequeiraE SequeiraCPPg++13.2.0Error
Nov 13, 2024 12:37Dan StolyarovDan StolyarovCPPclang++18.1.3Success272,027+0.06 RP
Nov 13, 2024 11:42Dan StolyarovDan StolyarovCPPclang++18.1.3Success275,480
Nov 13, 2024 11:35Dan StolyarovDan StolyarovCPPclang++18.1.3Success272,452
Nov 13, 2024 11:34Dan StolyarovDan StolyarovCPPg++13.2.0Success295,977
Nov 13, 2024 11:33Dan StolyarovDan StolyarovCPPclang++18.1.3Success272,461+1.41 RP
Nov 13, 2024 11:32Dan StolyarovDan StolyarovCPPclang++18.1.3Success293,150
Nov 13, 2024 11:30Dan StolyarovDan StolyarovCPPclang++18.1.3Success283,347+2.45 RP
Nov 13, 2024 11:27Dan StolyarovDan StolyarovCPPclang++18.1.3Success309,716
Nov 13, 2024 09:41Dan StolyarovDan StolyarovCPPclang++18.1.3Error
Nov 13, 2024 09:40Dan StolyarovDan StolyarovCPPclang++18.1.3Error
Nov 13, 2024 09:39Dan StolyarovDan StolyarovCPPclang++18.1.3Success304,469+17.97 RP
Nov 13, 2024 09:36Dan StolyarovDan StolyarovCPPclang++18.1.3Success672,127+1.93 RP
Nov 13, 2024 09:29Dan StolyarovDan StolyarovCPPclang++18.1.3Success3,103,944
Nov 13, 2024 09:27Dan StolyarovDan StolyarovCPPclang++18.1.3Success3,121,338
Nov 13, 2024 09:26Dan StolyarovDan StolyarovCPPclang++18.1.3Success3,265,482
Nov 13, 2024 07:46E SequeiraE SequeiraCPPg++13.2.0Success2,247,383
Nov 13, 2024 07:46E SequeiraE SequeiraCPPclang++18.1.3Success2,161,006
Nov 13, 2024 07:45Dan StolyarovDan StolyarovCPPclang++18.1.3Error
Nov 13, 2024 07:43E SequeiraE SequeiraCPPclang++18.1.3Success2,177,541
Nov 13, 2024 07:42E SequeiraE SequeiraCPPg++13.2.0Success2,173,969
Nov 13, 2024 07:40E SequeiraE SequeiraCPPg++13.2.0Success1,985,883+5.04 RP
Nov 13, 2024 06:02Dan StolyarovDan StolyarovCPPclang++18.1.3Error
Nov 13, 2024 05:47Dan StolyarovDan StolyarovCPPclang++18.1.3Error
Nov 13, 2024 05:45Dan StolyarovDan StolyarovCPPclang++18.1.3Error
Nov 13, 2024 05:38Dan StolyarovDan StolyarovCPPclang++18.1.3Error
Nov 13, 2024 05:37Dan StolyarovDan StolyarovCPPclang++18.1.3Error
Nov 10, 2024 06:39Haha ExpertHaha ExpertCSHARP9.0.0-rc.2Success17,539,043
Nov 8, 2024 03:29Haha ExpertHaha ExpertCSHARP9.0.0-rc.2Success17,536,698+0.57 RP
Nov 6, 2024 18:59Dan StolyarovDan StolyarovCPPclang++18.1.3Success772,064+0.49 RP
Nov 6, 2024 18:58Dan StolyarovDan StolyarovCPPclang++18.1.3Success1,270,649
Nov 6, 2024 18:57Dan StolyarovDan StolyarovCPPclang++18.1.3Error
Nov 6, 2024 18:52Dan StolyarovDan StolyarovCPPclang++18.1.3Success805,036
Nov 6, 2024 18:46Dan StolyarovDan StolyarovCPPg++13.2.0Success836,706
Nov 6, 2024 18:45Dan StolyarovDan StolyarovCPPclang++18.1.3Success804,161
Nov 6, 2024 18:41Dan StolyarovDan StolyarovCPPclang++18.1.3Success802,314+9.53 RP
Nov 6, 2024 18:34Dan StolyarovDan StolyarovCPPclang++18.1.3Success3,539,581
Nov 6, 2024 18:21Dan StolyarovDan StolyarovCPPclang++18.1.3Success3,407,041
Nov 6, 2024 18:19Dan StolyarovDan StolyarovCPPclang++18.1.3Success3,411,247+1.67 RP
Nov 6, 2024 18:18Dan StolyarovDan StolyarovCPPclang++18.1.3Error
Nov 6, 2024 18:12Dan StolyarovDan StolyarovCPPclang++18.1.3Success7,950,948
Nov 6, 2024 18:04Dan StolyarovDan StolyarovCPPclang++18.1.3Success7,947,566+1.26 RP
Oct 19, 2024 22:30Sybrand AarnoutseSybrand AarnoutseRUSTrust-1.82.0Success3,674,380+2.72 RP
Sep 19, 2024 20:34Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Success33,426+6.54 RP
Sep 19, 2024 20:29Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Success35,958
Sep 19, 2024 20:29Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Success36,732
Sep 19, 2024 20:28Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Success36,683
Sep 19, 2024 20:28Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Success36,474
Sep 19, 2024 20:27Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Success36,319
Sep 19, 2024 20:27Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Success34,751
Sep 19, 2024 20:26Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Success34,173+7.85 RP
Sep 19, 2024 20:11Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Success36,356
Sep 19, 2024 20:11Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Success37,363
Sep 19, 2024 19:55Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Error
Sep 19, 2024 19:54Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Success39,907
Sep 19, 2024 19:54Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Success35,115+72.63 RP
Sep 19, 2024 19:23Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Error
Sep 19, 2024 18:40Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Error
Sep 19, 2024 18:21Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Error
Sep 19, 2024 17:03Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Error
Sep 19, 2024 17:02Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Error
Sep 18, 2024 17:47Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Success47,136+5.43 RP
Sep 18, 2024 17:39Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Success50,518
Sep 18, 2024 17:37Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Success48,375+96.01 RP
Sep 3, 2024 16:36AnSaAnSaCPPg++13.2.0Success212,881
Sep 3, 2024 16:35AnSaAnSaCPPclang++18.1.3Success206,728
Aug 31, 2024 21:54Yuriy LyfenkoYuriy LyfenkoCPPclang++18.1.3Success28,286
Aug 14, 2024 19:16Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Error
Aug 14, 2024 15:07Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Error
Aug 14, 2024 15:03Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Error
Aug 14, 2024 15:02Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Error
Aug 14, 2024 13:37Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Error
Aug 13, 2024 10:03Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Error
Aug 13, 2024 10:01Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Error
Aug 13, 2024 07:37Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Success136,510
Aug 13, 2024 07:31Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Error
Aug 13, 2024 07:29Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Success90,616
Aug 13, 2024 07:28Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Success665,686
Aug 13, 2024 07:27Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Success646,895
Aug 13, 2024 05:07Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Success90,327+2.13 RP
Aug 13, 2024 05:04Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Success92,099+8.19 RP
Aug 13, 2024 04:55Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Error
Aug 5, 2024 11:33Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Error
Aug 5, 2024 11:24Andrey LikhachevAndrey LikhachevRUSTrust-1.79.0Success99,611+0.16 RP
Aug 2, 2024 12:46mberman12mberman12CPPg++9.4.0Success837,127
Aug 2, 2024 12:45mberman12mberman12CPPg++9.4.0Success837,179
Aug 2, 2024 12:44mberman12mberman12CPPg++9.4.0Success835,999
Aug 2, 2024 12:41mberman12mberman12CPPg++9.4.0Success834,635+0.04 RP