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 19, 2026 09:25Josu San MartinJosu San MartinScore: 10,417Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2026 09:2810,35918,324,6909,116,00002,117,632
2May 19, 2026 09:2810,36520,149,9169,122,00002,117,632
3May 19, 2026 09:2810,40318,274,2039,155,00002,117,632
4May 19, 2026 09:2810,41021,308,1398,159,0001,002,0002,113,536
5May 19, 2026 09:2810,41720,829,2268,163,0001,004,0002,117,632
6May 19, 2026 09:2810,42919,605,4358,164,0001,014,0002,117,632
7May 19, 2026 09:2810,49031,719,8188,215,0001,017,0002,117,632
8May 19, 2026 09:2810,59231,723,5688,233,0001,088,0002,117,632
9May 19, 2026 09:2810,60530,834,8318,303,0001,030,0002,113,536