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 listDec 28, 2022 06:38Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 06:4200000Error: expected "50942863225445 ", got "50942866039728 "
2Dec 28, 2022 06:3830,71188,852,24627,025,97302,228,224
3Dec 28, 2022 06:3830,774101,539,22727,081,22402,215,936
4Dec 28, 2022 06:3830,849102,435,43727,147,31102,220,032