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 listNov 30, 2022 11:51apuxbtapuxbtScore: 37,129Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 30, 2022 11:5136,89556,245,05831,454,0001,014,0002,265,088
2Nov 30, 2022 11:5136,91357,510,70631,468,0001,015,0002,265,088
3Nov 30, 2022 11:5136,98554,009,43931,530,0001,017,0002,265,088
4Nov 30, 2022 11:5137,02355,601,87032,580,00002,375,680
5Nov 30, 2022 11:5137,07058,291,84931,603,0001,019,0002,392,064
6Nov 30, 2022 11:5137,09261,161,23632,641,00002,387,968
7Nov 30, 2022 11:5137,12994,386,26132,673,42802,228,224
8Nov 30, 2022 11:5137,134103,811,72832,678,19402,232,320
9Nov 30, 2022 11:5137,15665,117,92831,676,0001,021,0002,265,088
10Nov 30, 2022 11:5137,20357,747,50031,716,0001,023,0002,260,992
11Nov 30, 2022 11:5137,22992,873,35732,761,33802,240,512
12Nov 30, 2022 11:5137,45257,283,08130,961,0001,997,0002,265,088