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 listNov 1, 2023 19:57Asahi NaruhayaAsahi NaruhayaScore: 2,371,905Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 1, 2023 19:572,363,4192,139,876,1082,079,809,09302,191,360
2Nov 1, 2023 19:572,371,9052,153,760,4412,087,276,47302,183,168
3Nov 1, 2023 19:572,376,2562,162,665,5642,091,105,14202,195,456