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 listFeb 22, 2025 11:49KeefeKeefeScore: 115,301Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2025 11:49114,434124,865,67799,695,0001,007,0002,400,256
2Feb 22, 2025 11:49114,435128,778,34599,696,0001,007,0002,277,376
3Feb 22, 2025 11:49114,758123,123,43499,988,000999,0002,277,376
4Feb 22, 2025 11:49115,151124,711,077100,330,0001,003,0002,277,376
5Feb 22, 2025 11:49115,301125,156,697101,465,00002,277,376
6Feb 22, 2025 11:49115,420122,455,411100,565,0001,005,0002,404,352
7Feb 22, 2025 11:49115,436124,846,523101,584,00002,277,376
8Feb 22, 2025 11:49115,466123,553,623101,610,00002,408,448
9Feb 22, 2025 11:49115,873126,446,321100,969,000999,0002,277,376