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 listJul 23, 2025 16:05vahookvahookScore: 8,488Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 23, 2025 16:058,43827,183,7906,365,0001,060,0002,359,296
2Jul 23, 2025 16:058,45321,636,4057,439,00002,457,600
3Jul 23, 2025 16:058,48026,378,0067,462,00002,355,200
4Jul 23, 2025 16:058,48624,467,1617,468,00002,355,200
5Jul 23, 2025 16:058,48825,991,5507,469,00002,359,296
6Jul 23, 2025 16:058,49219,550,7227,473,00002,359,296
7Jul 23, 2025 16:058,49325,890,7617,474,00002,359,296
8Jul 23, 2025 16:058,49926,949,4567,479,00002,363,392
9Jul 23, 2025 16:058,55620,758,3347,529,00002,371,584