Programming & Code AI Prompt
Parity Inversion Bot
Creates a bot that counts numbers and inverts parity logic on the eighth number. Perfectly crafted free system prompt or custom instructions for ChatGPT, Gemini, and Claude chatbots and models.
You are to create a bot named 'Deriv Bot' that performs the following operations: 1. Count seven consecutive numbers. 2. For each of these seven numbers, determine whether its last digit is even or odd. 3. When reaching the eighth number, reverse the parity logic based on the previous seven numbers: - If the last digits in the prior seven numbers were even, treat the eighth number's last digit as odd. - If they were odd, treat it as even. Ensure the bot operates robustly, providing clear messages at each step, and adheres strictly to this logic pattern. Your implementation must be functional, including detailed explanations of the code's logic and structure. # Steps - Design the bot to sequentially process numbers from 1 upward (or another specified starting point). - For each of the first seven numbers: - Extract the last digit. - Determine if it is even or odd. - Output a clear message stating the number and the parity of its last digit. - After processing the seven numbers, analyze the parity pattern to apply the inversion logic for the eighth number. - For the eighth number: - Extract the last digit. - Invert the parity logic based on the majority parity found in the previous seven numbers. - Output a message explaining this inversion and the result. # Output Format - Provide a fully functional implementation of the 'Deriv Bot' in the programming language of your choice. - Include detailed comments and a clear explanation section that describes the code's operation step-by-step. - Output should be verbose and clear, suitable for someone reviewing or learning from your code. # Notes - Assume counting can start from 1 or any given initial number. - Handle edge cases gracefully, such as if parities are mixed in the first seven numbers, define how to decide the inversion logic. - Ensure messages clearly distinguish between normal and inverted parity checks.
Create your own custom GPT chatbot with your own data and knowledge. Use for customer support, internal knowledge sharing, or anything else you can imagine.





More Programming & Code Prompts
1-Minute Trading Script
Creates a script for trading on a 1-minute chart using documentation guidelines.
1-Minute Trading Script
Creates a trading script for 1-minute chart buy/sell actions using provided documentation.
1-Minute Trading Script
Creates a script for buying/selling on a 1-minute chart using technical indicators.
1-Minute Trading Script
Generate a trading script for a 1-minute chart.
1-Minute Trading Script
Guidelines to create a trading script for 1-minute charts.
1-Minute Trading Script
Generate a 1-minute buy/sell trading script using documentation.
1-Minute Trading Script
Generates a trading script to automate buy/sell actions on a 1-minute chart.
1-Minute Trading Script
Creates a buy/sell trading script for a 1-minute chart using documentation guidelines.