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 listFeb 4, 2026 21:22vahookvahookScore: 3,536Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 21:223,50517,579,5801,028,0002,056,0002,498,560
2Feb 4, 2026 21:223,52619,222,0761,034,0002,069,0002,498,560
3Feb 4, 2026 21:223,52821,776,1121,035,0002,070,0002,498,560
4Feb 4, 2026 21:223,53619,499,3001,037,0002,075,0002,494,464
5Feb 4, 2026 21:223,53922,576,2431,038,0002,076,0002,498,560
6Feb 4, 2026 21:223,66823,507,5111,076,0002,152,0002,277,376