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 listApr 7, 2026 17:20b pb pScore: 2,178,748Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 7, 2026 17:202,170,5231,936,392,3381,896,067,00013,993,0002,510,848
2Apr 7, 2026 17:202,178,7481,946,702,5391,901,313,00015,985,0002,490,368
3Apr 7, 2026 17:202,192,0901,955,998,3911,913,056,00015,983,0002,457,600