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 listMar 1, 2026 02:23zielajzielajScore: 3,324Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 1, 2026 02:233,12420,906,4212,749,00002,420,736
2Mar 1, 2026 02:233,13918,249,3302,762,00002,424,832
3Mar 1, 2026 02:233,30319,621,679969,0001,938,0002,416,640
4Mar 1, 2026 02:233,30819,526,5782,911,00002,428,928
5Mar 1, 2026 02:233,32422,681,5452,925,00002,514,944
6Mar 1, 2026 02:233,59416,564,1292,109,0001,054,0002,416,640
7Mar 1, 2026 02:233,67318,596,3092,155,0001,077,0002,424,832
8Mar 1, 2026 02:233,70517,153,4583,260,00002,277,376
9Mar 1, 2026 02:233,80618,553,9733,349,00002,424,832