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 22, 2026 08:56Josu San MartinJosu San MartinScore: 8,843Success
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 08:588,77116,794,7576,643,0001,076,0002,121,728
2Jun 22, 2026 08:588,78816,859,8286,663,0001,071,0002,121,728
3Jun 22, 2026 08:588,79716,834,1466,669,0001,073,0002,121,728
4Jun 22, 2026 08:588,81016,864,4026,652,0001,101,0002,121,728
5Jun 22, 2026 08:588,84316,883,3666,718,0001,064,0002,121,728
6Jun 22, 2026 08:588,88716,947,5686,658,0001,163,0002,121,728
7Jun 22, 2026 08:588,91316,885,2666,678,0001,166,0002,121,728
8Jun 22, 2026 08:588,98617,060,0176,835,0001,073,0002,117,632
9Jun 22, 2026 08:589,14317,209,0066,967,0001,079,0002,121,728