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 listMay 20, 2026 19:27Josu San MartinJosu San MartinScore: 120,048Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2026 19:30118,929114,978,827104,658,00002,113,536
2May 20, 2026 19:30119,035115,894,067103,742,0001,009,0002,113,536
3May 20, 2026 19:30119,879115,408,118104,444,0001,050,0002,113,536
4May 20, 2026 19:30119,889116,454,466104,501,0001,002,0002,113,536
5May 20, 2026 19:30120,048116,682,536105,643,00002,113,536
6May 20, 2026 19:30120,164116,739,252104,651,0001,094,0002,113,536
7May 20, 2026 19:30120,234115,781,947104,746,0001,060,0002,113,536
8May 20, 2026 19:30120,279114,979,203104,834,0001,012,0002,113,536
9May 20, 2026 19:30120,446115,027,197104,946,0001,047,0002,113,536