home/productivity/task-004-prompt

Task 004 Prompt

GPTClaudeDeepSeek··993 copies·updated 2026-07-14
task-004-prompt.prompt
Now write a function sum_digits(n) that returns the sum of all digits in the integer n.

when to use it

Community prompt sourced from the open-source GitHub repo KCyrusNF/Prompting-Strategies-CodeGen-Study (MIT). A "Task 004 Prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

productivitycommunitydeveloper

source

KCyrusNF/Prompting-Strategies-CodeGen-Study · MIT