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 24, 2026 15:45Victor MerckléVictor MerckléScore: 12,344Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 15:4812,11333,674,0419,594,0001,066,0002,416,640
2Apr 24, 2026 15:4812,20126,727,2878,590,0002,147,0002,400,256
3Apr 24, 2026 15:4812,24018,749,8448,618,0002,154,0002,379,776
4Apr 24, 2026 15:4812,25327,192,9969,803,000980,0002,383,872
5Apr 24, 2026 15:4812,34418,981,7697,901,0002,962,0002,379,776
6Apr 24, 2026 15:4812,58918,995,5728,058,0003,021,0002,379,776
7Apr 24, 2026 15:4813,10118,517,7909,433,0002,096,0002,379,776
8Apr 24, 2026 15:4813,14218,641,5638,411,0003,154,0002,383,872
9Apr 24, 2026 15:4813,22621,676,3869,523,0002,116,0002,404,352