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.

Back to listOct 2, 2023 03:27apuxbtapuxbtError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 2, 2023 03:2700000Error: expected "51344121938097 ", got "51344121937714 "stderr
2Oct 2, 2023 03:2731,612105,708,33127,818,76202,248,704
3Oct 2, 2023 03:2731,65895,740,56427,858,84102,244,608
4Oct 2, 2023 03:2731,70398,564,38127,898,21002,248,704
5Oct 2, 2023 03:2831,708102,590,51927,902,99402,252,800
6Oct 2, 2023 03:2831,731114,367,06827,923,43302,252,800
7Oct 2, 2023 03:2832,05551,936,15126,194,0002,014,0002,285,568
8Oct 2, 2023 03:2832,05953,225,53026,197,0002,015,0002,285,568
9Oct 2, 2023 03:2832,06851,661,75826,205,0002,015,0002,285,568
10Oct 2, 2023 03:2832,06984,341,60028,220,91602,252,800
11Oct 2, 2023 03:2732,07549,569,34127,218,0001,008,0002,277,376
12Oct 2, 2023 03:2732,07751,236,30327,220,0001,008,0002,285,568
13Oct 2, 2023 03:2732,08354,411,31026,217,0002,016,0002,531,328
14Oct 2, 2023 03:2832,20255,158,64526,314,0002,024,0002,285,568
15Oct 2, 2023 03:2732,21050,430,67527,333,0001,012,0002,277,376
16Oct 2, 2023 03:2832,21550,717,67727,337,0001,012,0002,527,232
17Oct 2, 2023 03:2832,23550,969,92827,354,0001,013,0002,523,136
18Oct 2, 2023 03:2732,25950,766,97028,388,00002,285,568
19Oct 2, 2023 03:2732,27051,584,03228,398,00002,285,568
20Oct 2, 2023 03:2732,27851,258,90227,391,0001,014,0002,285,568
21Oct 2, 2023 03:2732,30955,120,53027,417,0001,015,0002,285,568
22Oct 2, 2023 03:2832,32851,712,56327,433,0001,016,0002,531,328
23Oct 2, 2023 03:2732,33949,488,19227,442,0001,016,0002,285,568
24Oct 2, 2023 03:2832,38358,855,22227,480,0001,017,0002,285,568
25Oct 2, 2023 03:2832,40753,757,82727,500,0001,018,0002,269,184