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 listJul 18, 2025 17:07vahookvahookScore: 17,658Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 18, 2025 17:0717,48438,771,84115,386,00002,420,736
2Jul 18, 2025 17:0717,51349,018,47215,411,00002,314,240
3Jul 18, 2025 17:0717,53039,897,43015,426,00002,342,912
4Jul 18, 2025 17:0717,55133,360,21215,445,00002,490,368
5Jul 18, 2025 17:0717,65839,046,54215,539,00002,351,104
6Jul 18, 2025 17:0717,69926,705,68814,537,0001,038,0002,408,448
7Jul 18, 2025 17:0717,70030,981,36314,538,0001,038,0002,494,464
8Jul 18, 2025 17:0717,70638,884,37715,581,00002,465,792
9Jul 18, 2025 17:0717,80945,787,93615,672,00002,486,272