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 10:00Josu San MartinJosu San MartinScore: 8,040Success
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 10:038,01514,611,8397,054,00002,117,632
2Jun 22, 2026 10:038,01914,461,6747,057,00002,117,632
3Jun 22, 2026 10:038,02214,447,0327,060,00002,117,632
4Jun 22, 2026 10:038,02814,495,5997,065,00002,117,632
5Jun 22, 2026 10:038,04014,566,4327,076,00002,117,632
6Jun 22, 2026 10:038,04714,507,2987,082,00002,117,632
7Jun 22, 2026 10:038,13814,519,1496,138,0001,024,0002,117,632
8Jun 22, 2026 10:038,14314,505,0226,146,0001,020,0002,117,632
9Jun 22, 2026 10:038,14714,536,1476,126,0001,044,0002,117,632