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 21, 2026 07:53Charles CabergsCharles CabergsError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 21, 2026 07:53048,487,19021,518,0001,024,0002,424,832expected "51340724590871 ", got "51341239773402 "
2Apr 21, 2026 07:53042,736,47521,501,0001,023,0002,412,544expected "51348784462933 ", got "51349083875324 "
3Apr 21, 2026 07:5325,46947,554,85221,395,0001,018,0002,420,736