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 26, 2025 05:24KeefeKeefeScore: 148,380Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2025 05:24148,363158,930,850130,559,00002,269,184
2Apr 26, 2025 05:24148,380155,930,271129,570,0001,004,0002,269,184
3Apr 26, 2025 05:24148,385152,668,787129,583,000996,0002,506,752