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 23, 2026 21:10Dominique GarmierDominique GarmierScore: 43,800Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 23, 2026 21:1043,69470,499,65938,451,00002,277,376
2Mar 23, 2026 20:2843,76671,493,39538,514,00002,392,064
3Mar 23, 2026 20:2843,77560,752,08337,509,0001,013,0002,277,376
4Mar 23, 2026 20:2843,80064,307,55937,530,0001,014,0002,277,376
5Mar 23, 2026 21:1043,81865,987,63437,546,0001,014,0002,375,680
6Mar 23, 2026 21:1043,84062,694,35837,564,0001,015,0002,383,872