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 listApr 7, 2026 17:22b pb pScore: 1,644,957Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 7, 2026 17:221,643,4081,475,515,4521,430,208,00015,991,0002,490,368
2Apr 7, 2026 17:221,644,9571,480,503,9201,431,567,00015,995,0002,502,656
3Apr 7, 2026 17:221,668,1001,497,139,2101,456,937,00010,991,0002,383,872