home/productivity/task-023-prompt

Task 023 Prompt

GPTClaudeDeepSeek··328 copies·updated 2026-07-14
task-023-prompt.prompt
To check for a leap year:
A year is a leap year if it is divisible by 4, except years divisible by 100, unless they are also divisible by 400.
Now write a function is_leap_year(year) and think step by step that applies this logic.

when to use it

Community prompt sourced from the open-source GitHub repo KCyrusNF/Prompting-Strategies-CodeGen-Study (MIT). A "Task 023 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