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:27apuxbtapuxbtScore: 36,716Success
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:2736,57854,866,49729,172,0003,017,0002,273,280
2Nov 29, 2022 05:2736,63153,300,31730,221,0002,014,0002,314,240
3Nov 29, 2022 05:2736,63956,848,24329,220,0003,022,0002,273,280
4Nov 29, 2022 05:2736,70158,793,96430,279,0002,018,0002,273,280
5Nov 29, 2022 05:2736,70555,721,38330,282,0002,018,0002,310,144
6Nov 29, 2022 05:2736,70762,768,24429,274,0003,028,0002,310,144
7Nov 29, 2022 05:2736,71654,900,00528,272,0004,038,0002,273,280
8Nov 29, 2022 05:2736,76957,373,21929,324,0003,033,0002,322,432
9Nov 29, 2022 05:2736,86055,250,14130,410,0002,027,0002,273,280
10Nov 29, 2022 05:2738,127103,238,15933,551,72102,297,856
11Nov 29, 2022 05:2738,22390,388,78733,635,80902,297,856
12Nov 29, 2022 05:2738,231104,288,34733,643,60402,301,952