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 listMar 26, 2024 05:08IhebIhebScore: 592,203Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 26, 2024 05:08591,712579,043,490520,706,51302,244,608
2Mar 26, 2024 05:08592,203597,803,812521,138,23202,240,512
3Mar 26, 2024 05:08593,615579,139,013522,381,15902,236,416