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 29, 2022 05:31apuxbtapuxbtScore: 36,303Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 29, 2022 05:3136,05066,134,55329,678,0002,046,0002,273,280
2Nov 29, 2022 05:3136,23859,238,30329,896,0001,993,0002,314,240
3Nov 29, 2022 05:3136,23957,765,90729,897,0001,993,0002,437,120
4Nov 29, 2022 05:3136,24956,834,07529,906,0001,993,0002,273,280
5Nov 29, 2022 05:3136,25158,925,16328,911,0002,990,0002,273,280
6Nov 29, 2022 05:3136,27261,707,92528,927,0002,992,0002,318,336
7Nov 29, 2022 05:3136,30358,594,33528,952,0002,995,0002,273,280
8Nov 29, 2022 05:3136,39161,118,65529,022,0003,002,0002,310,144
9Nov 29, 2022 05:3136,43864,549,88228,057,0004,008,0002,273,280
10Nov 29, 2022 05:3137,563100,381,79233,055,38102,289,664
11Nov 29, 2022 05:3137,56692,755,25033,058,40502,301,952
12Nov 29, 2022 05:3137,600103,201,58633,088,20002,297,856