DEV Community

Durga Pokharel
Durga Pokharel

Posted on

3 2

Day 8 of 100DaysOfCode: Python Code to Find Out Composite Or Prime Number

This is my 8th day of #100daysofcode . Today I learned more about Cascading style sheets which tell the browser how to display the text and other content that we write in HTML. Also, I tired to write some code regarding to some mathematical problems. Below is my code of the day. Which is used to find composite or prime number.

def prime_or_composit(n):
    f = 0
    for i in range(1,int(n/2)+1):
        if n % i == 0:
            f += 1

    if f >= 2:
        print(f"{n} is composit.")
    else:
        print(f"{n} is prime.")
prime_or_composit(5)
Enter fullscreen mode Exit fullscreen mode

Day 8 of #100DaysOfCode and Python
* Basic CSS
* Python Function
* Code to find out composite or Prime from given number.#CodeNewbie , #beginner , #programming pic.twitter.com/gu1fee6267

โ€” Durga Pokharel (@mathdurga) December 31, 2020

Image of AssemblyAI tool

Transforming Interviews into Publishable Stories with AssemblyAI

Insightview is a modern web application that streamlines the interview workflow for journalists. By leveraging AssemblyAI's LeMUR and Universal-2 technology, it transforms raw interview recordings into structured, actionable content, dramatically reducing the time from recording to publication.

Key Features:
๐ŸŽฅ Audio/video file upload with real-time preview
๐Ÿ—ฃ๏ธ Advanced transcription with speaker identification
โญ Automatic highlight extraction of key moments
โœ๏ธ AI-powered article draft generation
๐Ÿ“ค Export interview's subtitles in VTT format

Read full post

Top comments (0)

Sentry image

See why 4M developers consider Sentry, โ€œnot bad.โ€

Fixing code doesnโ€™t have to be the worst part of your day. Learn how Sentry can help.

Learn more

๐Ÿ‘‹ Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay