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 listMay 17, 2024 11:16Ivan BessonovIvan BessonovScore: 27,152Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 11:1626,87749,451,68622,624,0001,028,0002,289,664
2May 17, 2024 11:1626,90749,290,80522,649,0001,029,0002,289,664
3May 17, 2024 11:1626,98452,818,51222,714,0001,032,0002,289,664
4May 17, 2024 11:1627,01054,111,48822,736,0001,033,0002,289,664
5May 17, 2024 11:1627,03249,569,84323,788,00002,289,664
6May 17, 2024 11:1627,03551,871,03123,791,00002,289,664
7May 17, 2024 11:1627,15250,877,50421,903,0001,991,0002,523,136
8May 17, 2024 11:1627,16954,770,91521,917,0001,992,0002,269,184
9May 17, 2024 11:1627,20351,746,92022,899,0001,040,0002,289,664
10May 17, 2024 11:1627,22689,042,98123,959,00902,256,896
11May 17, 2024 11:1627,34791,285,32424,065,76902,256,896
12May 17, 2024 11:1627,39487,116,25124,107,11902,252,800