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 29, 2026 12:42TudyMTudyMScore: 33,986Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 12:4333,96549,007,42727,898,0001,992,0002,363,392
2Apr 29, 2026 12:4333,96847,225,33927,900,0001,992,0002,375,680
3Apr 29, 2026 12:4333,97949,533,93827,909,0001,993,0002,367,488
4Apr 29, 2026 12:4333,98448,594,59825,919,0003,987,0002,379,776
5Apr 29, 2026 12:4333,98648,034,51625,921,0003,987,0002,375,680
6Apr 29, 2026 12:4334,04849,996,94627,966,0001,997,0002,375,680
7Apr 29, 2026 12:4334,05745,280,90526,974,0002,997,0002,371,584
8Apr 29, 2026 12:4334,07045,806,33627,984,0001,998,0002,375,680
9Apr 29, 2026 12:4334,11045,723,11728,982,0001,035,0002,371,584