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 16, 2024 21:27Ivan BessonovIvan BessonovScore: 30,755Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 21:2727,175109,272,92423,913,84602,265,088
2May 16, 2024 21:2727,29196,400,44324,016,40102,248,704
3May 16, 2024 21:2727,370109,942,74624,085,44202,387,968
4May 16, 2024 21:2730,68859,128,56425,005,0002,000,0002,277,376
5May 16, 2024 21:2730,69849,970,42326,014,0001,000,0002,289,664
6May 16, 2024 21:2730,73652,472,91825,045,0002,003,0002,289,664
7May 16, 2024 21:2730,75549,395,09225,060,0002,004,0002,392,064
8May 16, 2024 21:2730,81049,911,23527,113,00002,269,184
9May 16, 2024 21:2730,82554,609,63925,117,0002,009,0002,281,472
10May 16, 2024 21:2730,84150,048,97325,130,0002,010,0002,527,232
11May 16, 2024 21:2730,88657,486,35025,167,0002,013,0002,289,664
12May 16, 2024 21:2730,98549,311,87325,248,0002,019,0002,277,376