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 26, 2026 09:39Charles CabergsCharles CabergsScore: 22,671Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 09:4022,62538,727,34816,924,0002,986,0002,416,640
2Apr 26, 2026 09:4022,63941,462,23616,935,0002,988,0002,330,624
3Apr 26, 2026 09:4022,64437,486,73218,879,0001,048,0002,424,832
4Apr 26, 2026 09:4022,65135,446,69117,940,0001,993,0002,338,816
5Apr 26, 2026 09:4022,67137,015,70418,954,000997,0002,420,736
6Apr 26, 2026 09:4022,67541,212,66017,959,0001,995,0002,408,448
7Apr 26, 2026 09:4022,67637,507,16517,960,0001,995,0002,338,816
8Apr 26, 2026 09:4022,77044,293,29718,984,0001,054,0002,424,832
9Apr 26, 2026 09:4022,81936,943,96318,073,0002,008,0002,416,640