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 15:17apuxbtapuxbtScore: 33,726Success
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 15:1733,40055,598,19129,392,00002,392,064
2Nov 30, 2022 15:1733,46454,802,28028,433,0001,015,0002,265,088
3Nov 30, 2022 15:1733,47057,483,52228,439,0001,015,0002,265,088
4Nov 30, 2022 15:1733,51653,884,76429,494,00002,265,088
5Nov 30, 2022 15:1733,62453,886,52328,569,0001,020,0002,392,064
6Nov 30, 2022 15:1733,63150,603,22828,575,0001,020,0002,392,064
7Nov 30, 2022 15:1733,72656,120,89628,656,0001,023,0002,392,064
8Nov 30, 2022 15:1733,74057,811,49428,668,0001,023,0002,392,064
9Nov 30, 2022 15:1733,78960,992,36128,709,0001,025,0002,265,088
10Nov 30, 2022 15:1734,97590,013,53530,777,95102,240,512
11Nov 30, 2022 15:1734,98795,007,84430,788,30502,232,320
12Nov 30, 2022 15:1734,99190,974,78530,792,37402,232,320