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 listMay 16, 2024 20:49Ivan BessonovIvan BessonovScore: 63,302Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 20:4963,288122,648,62955,693,11902,252,800
2May 16, 2024 20:4963,302131,527,66555,705,97002,256,896
3May 16, 2024 20:4963,401119,410,91255,792,45602,260,992