import discord
from sympy import sieve
TOKEN = '' # TOKENを貼り付け
CHANNELID = 00000000000000 # チャンネルIDを貼り付け
client = discord.Client()
@client.event
async def on_ready():
print('ログインしました')
@client.event
async def on_message(message):
if not message.author.bot:
channel = client.get_channel(CHANNELID)
print(message.content)
if str(message.content).isdigit():
await channel.send(int(message.content) in sieve)
client.run(TOKEN)