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 listJun 21, 2026 23:40Josu San MartinJosu San MartinScore: 9,603Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 23:439,47617,328,7727,321,0001,018,0002,117,632
2Jun 21, 2026 23:439,53117,289,2797,376,0001,012,0002,117,632
3Jun 21, 2026 23:439,55417,312,0857,399,0001,009,0002,117,632
4Jun 21, 2026 23:439,56317,415,0247,407,0001,009,0002,117,632
5Jun 21, 2026 23:439,60317,375,2417,364,0001,087,0002,117,632
6Jun 21, 2026 23:439,61517,406,1987,383,0001,079,0002,117,632
7Jun 21, 2026 23:439,64617,400,0927,395,0001,094,0002,117,632
8Jun 21, 2026 23:439,65417,357,7287,391,0001,105,0002,117,632
9Jun 21, 2026 23:439,67217,428,5277,402,0001,110,0002,117,632