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 listAug 21, 2026 16:53Andrew EpsteinAndrew EpsteinScore: 28,502Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 21, 2026 16:5528,45434,602,90325,040,00002,113,536
2Aug 21, 2026 16:5528,46234,667,65125,047,00002,113,536
3Aug 21, 2026 16:5528,47634,597,34725,059,00002,113,536
4Aug 21, 2026 16:5528,47935,123,22425,062,00002,113,536
5Aug 21, 2026 16:5528,50234,723,29025,082,00002,113,536
6Aug 21, 2026 16:5528,55134,761,97025,125,00002,113,536
7Aug 21, 2026 16:5528,55334,696,52125,127,00002,113,536
8Aug 21, 2026 16:5528,55734,715,08425,131,00002,113,536
9Aug 21, 2026 16:5528,59034,730,94025,160,00002,113,536