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 30, 2026 08:14olliecrowolliecrowScore: 12,004Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 08:1411,90227,702,0819,427,0001,047,0002,351,104
2Apr 30, 2026 08:1411,93528,238,6609,453,0001,050,0002,351,104
3Apr 30, 2026 08:1411,93527,023,7109,453,0001,050,0002,359,296
4Apr 30, 2026 08:1411,98233,619,5399,491,0001,054,0002,359,296
5Apr 30, 2026 08:1412,00429,464,6359,508,0001,056,0002,355,200
6Apr 30, 2026 08:1412,00530,384,4199,509,0001,056,0002,355,200
7Apr 30, 2026 08:1412,01729,062,2449,518,0001,057,0002,359,296
8Apr 30, 2026 08:1412,02825,483,0179,527,0001,058,0002,437,120
9Apr 30, 2026 08:1413,38030,013,98410,705,0001,070,0002,334,720