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 21, 2026 07:14Dominique GarmierDominique GarmierScore: 12,471Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 21, 2026 07:1512,42025,258,5779,837,0001,093,0002,383,872
2Apr 21, 2026 07:1512,43127,724,5418,951,0001,989,0002,375,680
3Apr 21, 2026 07:1512,45325,624,0448,967,0001,992,0002,408,448
4Apr 21, 2026 07:1512,47030,747,5488,979,0001,995,0002,379,776
5Apr 21, 2026 07:1512,47127,807,9598,980,0001,995,0002,379,776
6Apr 21, 2026 07:1512,49325,443,6428,995,0001,999,0002,375,680
7Apr 21, 2026 07:1512,54227,585,2099,031,0002,006,0002,269,184
8Apr 21, 2026 07:1512,65929,483,0879,115,0002,025,0002,375,680
9Apr 21, 2026 07:1513,44427,657,04511,831,00002,273,280