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:59Josu San MartinJosu San MartinScore: 9,023Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 22, 2026 00:028,96716,801,5726,884,0001,007,0002,117,632
2Jun 22, 2026 00:028,98016,860,1816,897,0001,006,0002,117,632
3Jun 22, 2026 00:028,99016,864,8076,901,0001,011,0002,117,632
4Jun 22, 2026 00:029,00416,900,1656,891,0001,033,0002,117,632
5Jun 22, 2026 00:029,02316,849,8566,907,0001,034,0002,117,632
6Jun 22, 2026 00:029,02616,810,8196,911,0001,032,0002,117,632
7Jun 22, 2026 00:029,04416,927,5176,947,0001,012,0002,117,632
8Jun 22, 2026 00:029,12216,814,4496,930,0001,098,0002,117,632
9Jun 22, 2026 00:029,18116,963,8026,963,0001,117,0002,117,632